aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gai
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2004-02-29 01:27:23 +0800
committerarved <arved@FreeBSD.org>2004-02-29 01:27:23 +0800
commit512d7294f9a422922fd7b569f6348cb33d766db5 (patch)
treebd2d84c62dd00d87af6407b9f859aed26db03846 /x11-toolkits/gai
parent17ee99f96b9da60d97abe3d497eab532bab52aae (diff)
downloadfreebsd-ports-gnome-512d7294f9a422922fd7b569f6348cb33d766db5.tar.gz
freebsd-ports-gnome-512d7294f9a422922fd7b569f6348cb33d766db5.tar.zst
freebsd-ports-gnome-512d7294f9a422922fd7b569f6348cb33d766db5.zip
Respect CFLAGS and fix build on AMD64
Diffstat (limited to 'x11-toolkits/gai')
-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: