freebsd-ports/graphics/goocanvas2/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

48 lines
1 KiB
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/trunk/graphics/goocanvas2/Makefile 17268 2013-04-01 05:13:11Z marcus $
PORTNAME= goocanvas
PORTVERSION= 2.0.2
CATEGORIES= graphics
MASTER_SITES= GNOME
PKGNAMESUFFIX= 2
MAINTAINER= kwm@FreeBSD.org
COMMENT= Canvas widget for GTK+ 3
USES= gmake pathfix pkgconfig
USE_GNOME= gtk30 introspection:build ltverhack
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_XZ= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/gtk-doc/html/goocanvas2
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^SUBDIRS/s|docs||g' ${WRKSRC}/Makefile.in
.endif
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgoocanvas-2.0.so.9
.include <bsd.port.mk>