summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-08-08 20:49:09 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-08-08 20:49:09 +0000
commit1bf8c3cf63786e7dddb89f57db6d4fd2aed736fc (patch)
treea0856559e8af793d3a8ebc1d9d7b7aa674750827 /x11
parentAdd goats, a sticky note alternative for the GNOME 2 desktop. (diff)
Do not hard-code -lgnugetopt which causes a problem on newer versions of
-CURRENT. PR: 55398 Submitted by: SUGIMOTO Sadahiro <ixtl@utmc.or.jp>
Notes
Notes: svn path=/head/; revision=86610
Diffstat (limited to 'x11')
-rw-r--r--x11/libcapplet/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/x11/libcapplet/Makefile b/x11/libcapplet/Makefile
index b0beec4a7045..57ceb3afb0d9 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>