svn commit: r337073 - head/print/pup
Pawel Pekala
pawel at FreeBSD.org
Fri Dec 20 18:57:13 UTC 2013
Author: pawel
Date: Fri Dec 20 18:57:13 2013
New Revision: 337073
URL: http://svnweb.freebsd.org/changeset/ports/337073
Log:
Respect CC/CFLAGS
PR: ports/184877
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Modified:
head/print/pup/Makefile (contents, props changed)
Modified: head/print/pup/Makefile
==============================================================================
--- head/print/pup/Makefile Fri Dec 20 18:51:31 2013 (r337072)
+++ head/print/pup/Makefile Fri Dec 20 18:57:13 2013 (r337073)
@@ -5,28 +5,28 @@ PORTNAME= pup
PORTVERSION= 1.1
PORTREVISION= 4
CATEGORIES= print
-#MASTER_SITES= http://download.sourceforge.net/pup/
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
MAINTAINER= ports at FreeBSD.org
-COMMENT= A GTK+ printer setup and maintaining tool
+COMMENT= GTK+ printer setup and maintaining tool
+
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
-PLIST_FILES= bin/pup
USE_GNOME= gtk12
-WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}/
+PLIST_FILES= bin/pup
-NO_STAGE= yes
post-patch:
- @echo ${WRKSRC}
- @${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|g' ${WRKSRC}/Makefile
-
-.for file in lexgui.c build_choices.c proutines.c
- @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/${file}
+ @${REINPLACE_CMD} -e \
+ 's| =| ?=| ; \
+ s|$$(CC) $$(SRCS)|$$(CC) $$(CFLAGS) $$(SRCS)| ; \
+ s|gtk-config|$$(GTK_CONFIG)|' ${WRKSRC}/Makefile
+.for i in lexgui.c build_choices.c proutines.c
+ @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/${i}
.endfor
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/pup ${PREFIX}/bin/
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} pup ${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list