aboutsummaryrefslogtreecommitdiff
path: root/games/wmpuzzle
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:16:39 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:16:39 +0000
commit57d5734108013bd18c77500365041430eb543a34 (patch)
tree55b2320e196868751c1351d4ebd22348b86910a0 /games/wmpuzzle
parent29e93405949c5b2ed1f3470c25802ea661e5f71d (diff)
downloadports-57d5734108013bd18c77500365041430eb543a34.tar.gz
ports-57d5734108013bd18c77500365041430eb543a34.zip
Conditionalize libgnugetopt dependencies.
PR: ports/47744 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74496
Diffstat (limited to 'games/wmpuzzle')
-rw-r--r--games/wmpuzzle/Makefile26
-rw-r--r--games/wmpuzzle/files/patch-Makefile.in27
2 files changed, 42 insertions, 11 deletions
diff --git a/games/wmpuzzle/Makefile b/games/wmpuzzle/Makefile
index d835a0dcc480..ab50256de774 100644
--- a/games/wmpuzzle/Makefile
+++ b/games/wmpuzzle/Makefile
@@ -18,27 +18,31 @@ EXTRACT_ONLY= wmpuzzle_${PORTVERSION}.orig${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= CFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib -lgnugetopt"
-USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+
USE_X_PREFIX= yes
USE_XPM= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN6= wmpuzzle.6
BSDIMAGES= daemon.xpm
+CPPFLAGS+= -I${X11BASE}/include
+LDFLAGS+= -L${X11BASE}/lib
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
+.endif
+
post-extract:
.for i in ${BSDIMAGES}
- ${CP} ${DISTDIR}/${DIST_SUBDIR}/$i ${WRKSRC}/
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/
.endfor
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/wmpuzzle ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/wmpuzzle.6 ${PREFIX}/man/man6
-
.include <bsd.port.mk>
diff --git a/games/wmpuzzle/files/patch-Makefile.in b/games/wmpuzzle/files/patch-Makefile.in
new file mode 100644
index 000000000000..7545f58bacc9
--- /dev/null
+++ b/games/wmpuzzle/files/patch-Makefile.in
@@ -0,0 +1,27 @@
+--- Makefile.in.orig Tue Oct 22 04:56:02 2002
++++ Makefile.in Fri Jan 24 03:36:00 2003
+@@ -8,10 +8,13 @@
+ mandir = @mandir@
+
+ CC = @CC@
++CPPFLAGS = @CPPFLAGS@
+ CFLAGS = -I. -Wall @CFLAGS@
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ INSTALL = @INSTALL@
++INSTALL_PROGRAM = @INSTALL_PROGRAM@
++INSTALL_DATA = @INSTALL_DATA@
+ LN_S = @LN_S@
+
+ all: wmpuzzle
+@@ -23,8 +26,8 @@
+ wmgeneral.o: wmgeneral.c wmgeneral.h
+
+ install: wmpuzzle wmpuzzle.6
+- $(INSTALL) -D -s -m 755 wmpuzzle $(DESTDIR)$(bindir)/wmpuzzle
+- $(INSTALL) -D -m 644 wmpuzzle.6 $(DESTDIR)$(mandir)/man6/wmpuzzle.6
++ $(INSTALL_PROGRAM) wmpuzzle $(DESTDIR)$(bindir)/wmpuzzle
++ $(INSTALL_DATA) wmpuzzle.6 $(DESTDIR)$(mandir)/man6/wmpuzzle.6
+
+ uninstall:
+ rm -f $(DESTDIR)$(bindir)/wmpuzzle