diff options
author | kevlo <kevlo@FreeBSD.org> | 2000-11-13 23:00:54 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2000-11-13 23:00:54 +0800 |
commit | 32e8f25735d0060a77d9a2751a9c728d2fcdf968 (patch) | |
tree | 37f0c673942da9bf808e0d61a44905b7df53e7b6 /x11-toolkits | |
parent | 8241ada19e8e5e262154eb2ef7b00f3580d54ec8 (diff) | |
download | freebsd-ports-gnome-32e8f25735d0060a77d9a2751a9c728d2fcdf968.tar.gz freebsd-ports-gnome-32e8f25735d0060a77d9a2751a9c728d2fcdf968.tar.zst freebsd-ports-gnome-32e8f25735d0060a77d9a2751a9c728d2fcdf968.zip |
Support CFLAGS/MAKE properly
PR: 22816
Submitted by: Ports Fury
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/xg/Makefile | 26 | ||||
-rw-r--r-- | x11-toolkits/xg/files/patch-aa | 15 |
2 files changed, 24 insertions, 17 deletions
diff --git a/x11-toolkits/xg/Makefile b/x11-toolkits/xg/Makefile index 7b0f27f92345..73e336000a37 100644 --- a/x11-toolkits/xg/Makefile +++ b/x11-toolkits/xg/Makefile @@ -14,25 +14,23 @@ DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org -USE_MOTIF= yes +WRKSRC= ${WRKDIR}/Xg-${PORTVERSION} USE_X_PREFIX= yes +USE_MOTIF= yes MAKEFILE= makefile -WRKSRC= ${WRKDIR}/Xg-1.0 do-install: - @ ${INSTALL_DATA} ${WRKSRC}/src/libxg.a ${PREFIX}/lib - @ ${MKDIR} ${PREFIX}/include/xg - @ ${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/xg - @ ${MKDIR} ${PREFIX}/share/examples/xg - @ ${INSTALL_DATA} ${WRKSRC}/testsrc/* ${PREFIX}/share/examples/xg - @ ${MV} ${PREFIX}/share/examples/xg/makefile ${PREFIX}/share/examples/xg/Makefile - @ ${RM} ${PREFIX}/share/examples/xg/makefile.orig - -post-install: + ${INSTALL_DATA} ${WRKSRC}/src/libxg.a ${PREFIX}/lib + @${MKDIR} ${PREFIX}/include/xg + ${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/xg + @${MKDIR} ${PREFIX}/share/examples/xg + ${INSTALL_DATA} ${WRKSRC}/testsrc/*.c ${PREFIX}/share/examples/xg + ${INSTALL_DATA} ${WRKSRC}/testsrc/*.xpm ${PREFIX}/share/examples/xg + ${INSTALL_DATA} ${WRKSRC}/testsrc/makefile ${PREFIX}/share/examples/xg/Makefile .if !defined(NOPORTDOCS) - @ ${MKDIR} ${PREFIX}/share/doc/xg - @ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/xg - @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xg + @${MKDIR} ${PREFIX}/share/doc/xg + ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/xg + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xg .endif .include <bsd.port.mk> diff --git a/x11-toolkits/xg/files/patch-aa b/x11-toolkits/xg/files/patch-aa index 268de4321a0c..0f1e8f1841a4 100644 --- a/x11-toolkits/xg/files/patch-aa +++ b/x11-toolkits/xg/files/patch-aa @@ -1,5 +1,5 @@ ---- makefile Sat Mar 15 00:36:20 1997 -+++ /home/andy/tmp/wrk/makefile Wed Dec 2 22:28:41 1998 +--- makefile.orig Sat Mar 15 09:36:20 1997 ++++ makefile Sun Nov 12 22:18:51 2000 @@ -51,8 +51,8 @@ # most systems don't need to do this, ie:. -I/usr/dt/include for # Solaris @@ -7,7 +7,16 @@ -MOTIF_INC = -CFLAGS = "-DUSE_XM_MWMUTIL_H -DUSE_XGPM -I../include ${MOTIF_INC}" +MOTIF_INC = -I${X11BASE}/include -I${X11BASE}/include/X11 -+CFLAGS = "-DUSE_XM_MWMUTIL_H -DUSE_XGPM -DV_USE_TM_ZONE -I../include ${MOTIF_INC}" ++CFLAGS += -DUSE_XM_MWMUTIL_H -DUSE_XGPM -DV_USE_TM_ZONE -I../include ${MOTIF_INC} # # If your OS doesn't use ranlib set RANLIB to true +@@ -76,7 +76,7 @@ + + library: + @(cd src; \ +- CFLAGS=${CFLAGS} ARFLAGS=${ARFLAGS} RANLIB=${RANLIB} make all) ++ CFLAGS="${CFLAGS}" ARFLAGS="${ARFLAGS}" RANLIB="${RANLIB}" ${MAKE} all) + + tests: library + @(cd testsrc; \ |