aboutsummaryrefslogtreecommitdiffstats
path: root/x11/libcapplet
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-08-09 04:49:09 +0800
committermarcus <marcus@FreeBSD.org>2003-08-09 04:49:09 +0800
commit65026a621355d95b1f9e05869395a62773edacdb (patch)
treed5b60c998deb73399d637cd1cbc04018990618ac /x11/libcapplet
parent444a3c8e5ce1e35d9b4201b468fe094ee5a5471a (diff)
downloadfreebsd-ports-graphics-65026a621355d95b1f9e05869395a62773edacdb.tar.gz
freebsd-ports-graphics-65026a621355d95b1f9e05869395a62773edacdb.tar.zst
freebsd-ports-graphics-65026a621355d95b1f9e05869395a62773edacdb.zip
Do not hard-code -lgnugetopt which causes a problem on newer versions of
-CURRENT. PR: 55398 Submitted by: SUGIMOTO Sadahiro <ixtl@utmc.or.jp>
Diffstat (limited to 'x11/libcapplet')
-rw-r--r--x11/libcapplet/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/x11/libcapplet/Makefile b/x11/libcapplet/Makefile
index b0beec4a704..57ceb3afb0d 100644
--- a/x11/libcapplet/Makefile
+++ b/x11/libcapplet/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libcapplet
PORTVERSION= 1.4.0.5
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= http://people.freebsd.org/~sobomax/
DIST_SUBDIR= gnome
@@ -21,6 +22,14 @@ INSTALLS_SHLIB= yes
USE_GETOPT_LONG=yes
MAKE_ENV= X11BASE="${X11BASE}" LOCALBASE="${LOCALBASE}" LDFLAGS="${LDFLAGS}"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500041
+USE_REINPLACE= yes
+post-build:
+ @${REINPLACE_CMD} -e 's/-lgnugetopt //' ${WRKSRC}/cappletConf.sh
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libcapplet.so.5 ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libcapplet.a ${PREFIX}/lib
@@ -32,4 +41,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/control-center.idl ${PREFIX}/share/gnome/idl
${INSTALL_SCRIPT} ${WRKSRC}/cappletConf.sh ${PREFIX}/etc
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>