summaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-02-28 17:27:23 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-02-28 17:27:23 +0000
commit24fdb41eff9380109936ac1e8c529d23af4d72a3 (patch)
tree080a6a288afd3f1aa83e34b6b4c23a08559d24b3 /x11-toolkits
parent- Update to 5.2.0 (diff)
Respect CFLAGS and fix build on AMD64
Notes
Notes: svn path=/head/; revision=102429
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/gai/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11-toolkits/gai/Makefile b/x11-toolkits/gai/Makefile
index 97497995d3a0..af5cbc739951 100644
--- a/x11-toolkits/gai/Makefile
+++ b/x11-toolkits/gai/Makefile
@@ -30,9 +30,14 @@ PLIST_FILES= include/gai/gai.h lib/libgai.so.0.5.2 lib/libgai.so.0 \
PLIST_DIRS= include/gai
INSTALLS_SHLIB= yes
+.if ${MACHINE_ARCH:L} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|lib/pkgconfig/|libdata/pkgconfig/|" ${WRKSRC}/gai/Makefile.in
+ ${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|g" ${WRKSRC}/gai/Makefile.in
.if !defined(NOPORTDOCS)
post-install: