aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-10-10 22:36:21 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-10-10 22:36:21 +0800
commit405967eea137b14f8c89974aa31104c749ae7651 (patch)
treece67358af17e3d399c67f70f512145e0b6e1c8d6
parent449287f06f01999d69abeefc0379cd46bbb17efd (diff)
downloadfreebsd-ports-gnome-405967eea137b14f8c89974aa31104c749ae7651.tar.gz
freebsd-ports-gnome-405967eea137b14f8c89974aa31104c749ae7651.tar.zst
freebsd-ports-gnome-405967eea137b14f8c89974aa31104c749ae7651.zip
- Strip shared library
- Change symbolic link: libpci.so -> libpci.so.3 - Support STAGEDIR
-rw-r--r--devel/libpci/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/devel/libpci/Makefile b/devel/libpci/Makefile
index 1bdda91f1792..d5c5ac5c92b5 100644
--- a/devel/libpci/Makefile
+++ b/devel/libpci/Makefile
@@ -22,26 +22,30 @@ USE_LDCONFIG= yes
USES= gmake
PLIST_DIRS= include/pci
-PLIST_FILES= ${LIBPCI_FILES} lib/libpci.so.3
-
-LIBPCI_FILES= include/pci/config.h include/pci/header.h include/pci/pci.h \
- include/pci/types.h lib/libpci.a lib/libpci.so \
+PLIST_FILES= ${LIBPCI_FILES} \
+ lib/libpci.so
+
+LIBPCI_FILES= include/pci/config.h \
+ include/pci/header.h \
+ include/pci/pci.h \
+ include/pci/types.h \
+ lib/libpci.a \
+ lib/libpci.so.3 \
libdata/pkgconfig/libpci.pc
-NO_STAGE= yes
post-patch:
@${LN} -s . ${WRKSRC}/lib/pci
@${REINPLACE_CMD} -e '/^CC=/d; /^CFLAGS=/ s|=|+=|; /^IDSDIR=/ s|$$|/pciids|; /^OPT=/d; /^PREFIX=/d' ${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|^#include "|&pci/|' ${WRKSRC}/lib/pci.h
post-build:
- cd ${WRKSRC}/lib/ && ${CC} ${CFLAGS} -shared *.o -lz -o libpci.so
+ @cd ${WRKSRC}/lib/ && ${CC} ${CFLAGS} ${STRIP} -shared *.o -lz -o libpci.so.3
do-install:
- ${MKDIR} ${PREFIX}/include/pci/
+ ${MKDIR} ${STAGEDIR}${PREFIX}/include/pci/
.for file in ${LIBPCI_FILES}
- ${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${PREFIX}/${file}
+ ${INSTALL_DATA} ${WRKSRC}/lib/${file:T} ${STAGEDIR}${PREFIX}/${file}
.endfor
- ${LN} -fs libpci.so ${PREFIX}/lib/libpci.so.3
+ ${LN} -fs libpci.so.3 ${STAGEDIR}${PREFIX}/lib/libpci.so
.include <bsd.port.mk>