freebsd-ports/deskutils/gnote/Makefile
Don Lewis 4b34a92461 Configure fails to find proper link command for Boost unit_test_framework
because it first tries to link this library statically, and when
that fails, it "forgets" to try linking it dynamically.  The reason
is that it has a bunch of nested loops to try multiple variations
on the library name and keeps track of which library names it has
tried so that it doesn't retry the same library name. The problem
is that one of the loop variables also governs whether it should
try static or dynamic liking, and if static linking fails, the
library name gets added to the exclusion list, which prevents it
from trying dynamic linking.  Fix by the value of the loop variable
$boost_rtopt_ to the key value into the list of library variations
to disambiguate the two cases so that linking both ways is tried.

Also move the location where $boost_failed_libs is set out by one
nesting level to prevent the same library name value from being added
to the list multiple times.

Get rid of .include <bsd.port.options.mk> and .if ${PORT_OPTIONS:MDOCS}
as suggested by mat@. Portlint whines about it but the Porters Handbook
says it is OK because the doc files are few and small.

Unmute ${INSTALL_DATA} as suggested by portlint.

PR:		195597
Differential Revision:	https://reviews.freebsd.org/D2279
Reviewed by:	kwm
Approved by:	mat (mentor)
2015-04-12 05:19:59 +00:00

47 lines
1.3 KiB
Makefile

# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$
# $MCom: ports/trunk/deskutils/gnote/Makefile 19997 2014-10-19 18:15:03Z gusi $
PORTNAME= gnote
PORTVERSION= 3.14.2
CATEGORIES= deskutils gnome
MASTER_SITES= GNOME
MAINTAINER= gnome@FreeBSD.org
COMMENT= C++ version of Tomboy, note taking application
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= itstool:${PORTSDIR}/textproc/itstool
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
libgtkspell3-3.so:${PORTSDIR}/textproc/gtkspell3 \
libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
libsecret-1.so:${PORTSDIR}/security/libsecret \
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
USE_GNOME= gnomeprefix gtk30 gtkmm30 intltool \
libxml2 libxslt
USES= desktop-file-utils gettext gmake libtool \
pathfix pkgconfig tar:xz
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-dbus-service-dir=${PREFIX}/share/dbus-1/services
INSTALL_TARGET= install-strip
GLIB_SCHEMAS= org.gnome.gnote.gschema.xml
DOCS= AUTHORS ChangeLog NEWS README TODO
PLIST_SUB+= VERSION=${PORTVERSION}
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>