aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-28 02:17:37 +0800
committerpawel <pawel@FreeBSD.org>2014-04-28 02:17:37 +0800
commit9e3cf8a3fe4535100b81b3bf4fd94889c768e715 (patch)
tree40d6ccec189ba646004ca4390fe5375ed5260462 /graphics
parentb7d918a240b7764ddaa0aec2b618f43f07b635b0 (diff)
downloadfreebsd-ports-gnome-9e3cf8a3fe4535100b81b3bf4fd94889c768e715.tar.gz
freebsd-ports-gnome-9e3cf8a3fe4535100b81b3bf4fd94889c768e715.tar.zst
freebsd-ports-gnome-9e3cf8a3fe4535100b81b3bf4fd94889c768e715.zip
- Add staging support
- Convert to new LIB_DEPENDS format - Use options helpers, subs
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gtkdps/Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/graphics/gtkdps/Makefile b/graphics/gtkdps/Makefile
index b3f825125a43..ecceaa4de6a6 100644
--- a/graphics/gtkdps/Makefile
+++ b/graphics/gtkdps/Makefile
@@ -13,7 +13,7 @@ DISTNAME= gtkDPS-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Gtk bindings for the Display GhostScript System
-LIB_DEPENDS+= dpstk:${PORTSDIR}/x11/dgs
+LIB_DEPENDS= libdpstk.so:${PORTSDIR}/x11/dgs
USE_GNOME= gtk12
GNU_CONFIGURE= yes
@@ -24,28 +24,17 @@ CONFIGURE_ARGS= --with-dps-includes=${LOCALBASE}/include \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-NO_STAGE= yes
+alpha_BROKEN= Does not compile on alpha
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "alpha"
-BROKEN= Does not compile on alpha
-.endif
+NLS_USES= gettext
post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure
+ @${REINPLACE_CMD} 's|gnulocaledir)|DESTDIR)$$(&|' \
+ ${WRKSRC}/po/Makefile.in.in
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>