summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
Diffstat (limited to 'x11')
-rw-r--r--x11/xcolorsel/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/x11/xcolorsel/Makefile b/x11/xcolorsel/Makefile
index 82352b1..65774de 100644
--- a/x11/xcolorsel/Makefile
+++ b/x11/xcolorsel/Makefile
@@ -18,15 +18,16 @@ COMMENT= X utility to translate rgb values into X color names
LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
WRKSRC= $(WRKDIR)/xcolorsel
+USE_REINPLACE= yes
USE_IMAKE= yes
USE_XPM= yes
MAN1= xcolorsel.1
post-patch:
- ${ECHO_CMD} "*.file: ${X11BASE}/lib/X11/rgb.txt" >> ${WRKSRC}/Xcolorsel.ad
- ${PERL} -pi -e "s|#include <malloc.h>||g; s|/Xaw/|/Xaw3d/|g;" \
- ${WRKSRC}/*.[ch]
- ${PERL} -pi -e "s|app2head|./app2head|g; \
- s|XawClientLibs|-lXaw3d \\$$\(XMULIBONLY\) \\$$\(XTOOLLIB\) \\$$\(XPMLIB) \\$$\(XLIB\)|g" ${WRKSRC}/Imakefile
+ @${ECHO_CMD} "*.file: ${X11BASE}/lib/X11/rgb.txt" >> ${WRKSRC}/Xcolorsel.ad
+ @${REINPLACE_CMD} -e 's|#include <malloc.h>||g' \
+ -e 's|/Xaw/|/Xaw3d/|g' ${WRKSRC}/*.[ch]
+ @${REINPLACE_CMD} -e 's|app2head|./app2head|g' \
+ -e 's|XawClientLibs|-lXaw3d $$(XMULIBONLY) $$(XTOOLLIB) $$(XPMLIB) $$(XLIB)|g' ${WRKSRC}/Imakefile
.include <bsd.port.mk>
OpenPOWER on IntegriCloud