diff options
author | bapt <bapt@FreeBSD.org> | 2014-01-07 05:10:01 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-01-07 05:10:01 +0800 |
commit | 34dab9e35254026b7d99400e832063ff65517bc3 (patch) | |
tree | 65cb435e9205b3613f8bc7f4134ede735d9a17fe /x11/dzen2 | |
parent | 410ffe223477f6a7c63aed061cb6e1f1c2de1688 (diff) | |
download | freebsd-ports-gnome-34dab9e35254026b7d99400e832063ff65517bc3.tar.gz freebsd-ports-gnome-34dab9e35254026b7d99400e832063ff65517bc3.tar.zst freebsd-ports-gnome-34dab9e35254026b7d99400e832063ff65517bc3.zip |
Support stage
Play with MAKE_ARGS instead of patching
Diffstat (limited to 'x11/dzen2')
-rw-r--r-- | x11/dzen2/Makefile | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/x11/dzen2/Makefile b/x11/dzen2/Makefile index 62356f8f2f2f..7d72cfa0eb68 100644 --- a/x11/dzen2/Makefile +++ b/x11/dzen2/Makefile @@ -17,29 +17,16 @@ PLIST_FILES= bin/${PORTNAME} OPTIONS_DEFINE= XPM XINERAMA OPTIONS_DEFAULT= XPM XINERAMA -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MXPM} -USE_XORG+= xpm -.endif - -.if ${PORT_OPTIONS:MXINERAMA} -USE_XORG+= xinerama -.endif - -post-patch: -.if ${PORT_OPTIONS:MXPM} - ${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXpm/g' \ - -e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XPM/g' \ - ${WRKSRC}/config.mk -.endif -.if ${PORT_OPTIONS:MXINERAMA} - ${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXinerama/g' \ - -e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XINERAMA/g' \ - ${WRKSRC}/config.mk -.endif - ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ - ${WRKSRC}/config.mk +LDFLAGS= -L${LOCALBASE}/lib +CFLAGS= -I${LOCALBASE}/include +XPM_USE= XORG=xpm +XPM_CFLAGS= -DDZEN_XPM +XPM_LDFLAGS= -lXpm +XINERAMA_USE= XORG=xinerama +XINERAMA_LDFLAGS= -lXinerama +XINERAMA_CLAGS= -DDZEN_XINERAMA + +MAKE_ARGS= LDFLAGS="${LDFLAGS} \$${LIBS}" \ + CFLAGS="${CFLAGS} ${INCS} -DVERSION=\\\"\$${VERSION}\\\"" .include <bsd.port.mk> |