This patch makes the port respect CFLAGS, CPPFLAGS, LDFLAGS and LIBS. Fixes builds with

external toolchains (qemu enabled poudriere jails).

PR:		196968
Submitted by:	tijl
Approved by:	maintainer timeout
This commit is contained in:
Sean Bruno 2015-02-12 20:48:26 +00:00
parent a0103f147d
commit 090230c211
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378894

View file

@ -3,7 +3,7 @@
PORTNAME= akamaru
PORTVERSION= 0.1
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= deskutils gnome
MASTER_SITES= http://people.freedesktop.org/~krh/
DISTNAME= ${PORTNAME}
@ -19,6 +19,12 @@ GCONF_SCHEMAS= kiba.schemas
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} \
-e '/^CFLAGS =/s|-g| ${CFLAGS} |' \
-e '/^CPPFLAGS =/s|$$| ${CPPFLAGS}|' \
-e '/^LDFLAGS =/s|-g| ${LDFLAGS} |' \
-e '/^LDLIBS =/s|$$| ${LIBS} -lm|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
${WRKSRC}/populate-dock.sh