Page MenuHomeFreeBSD

D48692.diff
No OneTemporary

D48692.diff

diff --git a/devel/libepoll-shim/Makefile b/devel/libepoll-shim/Makefile
--- a/devel/libepoll-shim/Makefile
+++ b/devel/libepoll-shim/Makefile
@@ -10,6 +10,11 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+FLAVORS= default i386
+FLAVOR?= ${FLAVORS:[1]}
+i386_PKGNAMESUFFIX= -i386
+i386_PLIST= ${.CURDIR}/pkg-plist.i386
+
USES= cmake compiler:c11
USE_LDCONFIG= yes
USE_GITHUB= yes
@@ -18,6 +23,20 @@
PLIST_SUB= SHIM_EVENTFD="${exists(/usr/include/sys/eventfd.h):?@comment :}" \
SHIM_TIMERFD="${exists(/usr/include/sys/timerfd.h):?@comment :}"
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != amd64 && ${FLAVOR:U} == i386
+IGNORE= i386 flavor only makes sense for amd64 arch
+.endif
+
+.if ${FLAVOR:U} == i386
+CFLAGS+= -m32
+CMAKE_ARGS+= -DCMAKE_INSTALL_LIBDIR=lib32
+
+post-stage:
+ ${RM} -r ${STAGEDIR}${PREFIX}/include ${STAGEDIR}${PREFIX}/libdata
+.endif
+
do-test:
# Exclude certain tests in resource restricted environments
@(if [ `ulimit -n` -lt 20100 ]; then \
@@ -32,4 +51,4 @@
cd ${TEST_WRKSRC} && \
${SETENV} ${TEST_ENV} ctest -C ${CMAKE_BUILD_TYPE} $$SKIP_TESTS)
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/libepoll-shim/pkg-plist.i386 b/devel/libepoll-shim/pkg-plist.i386
new file mode 100644
--- /dev/null
+++ b/devel/libepoll-shim/pkg-plist.i386
@@ -0,0 +1,7 @@
+lib32/cmake/epoll-shim/epoll-shim-config.cmake
+lib32/cmake/epoll-shim/epoll-shim-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib32/cmake/epoll-shim/epoll-shim-targets.cmake
+lib32/libepoll-shim-interpose.so
+lib32/libepoll-shim-interpose.so.0
+lib32/libepoll-shim.so
+lib32/libepoll-shim.so.0

File Metadata

Mime Type
text/plain
Expires
Wed, May 27, 12:10 PM (14 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33556052
Default Alt Text
D48692.diff (1 KB)

Event Timeline