Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.24 2017/04/21 13:27:46 kurt Exp $
  2. COMMENT= Java Native Access (JNA)
  3. GH_PROJECT= jna
  4. GH_ACCOUNT= java-native-access
  5. GH_TAGNAME= 4.4.0
  6. CATEGORIES= devel
  7. MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
  8. REVISION= 0
  9. HOMEPAGE= https://github.com/java-native-access/jna
  10. # LGPLv2.1+
  11. PERMIT_PACKAGE_CDROM= Yes
  12. MODULES= java
  13. MODJAVA_VER= 1.6+
  14. MODJAVA_BUILD= ant
  15. # use the system libffi
  16. MODJAVA_BUILD_ARGS +=-Ddynlink.native=true
  17. # build.xml specifically wants gmake (and ggrep)
  18. USE_GMAKE= Yes
  19. BUILD_DEPENDS= sysutils/ggrep
  20. LIB_DEPENDS= devel/libffi
  21. # clojure needs to have the jna.jar installed
  22. TEST_DEPENDS= ${BASE_PKGPATH} \
  23. lang/clojure
  24. MAKE_ENV= CC="${CC}" \
  25. PORTS_CFLAGS="${CFLAGS}"
  26. GNU_ARCH= ${ARCH:S/amd64/x86-64/:S/i386/x86/}
  27. # XXX: remove stale distribution file
  28. post-extract:
  29. rm ${WRKSRC}/native/libffi/src/powerpc/linux64_closure.S.orig
  30. pre-configure:
  31. sed -i -e 's,-Wno-unknown-warning-option,,' \
  32. -e 's,-Wno-clobbered,,' ${WRKSRC}/native/Makefile
  33. do-install:
  34. ${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR} ${MODJAVA_DOC_DIR}/jna/
  35. ${INSTALL_DATA} ${WRKSRC}/build/openbsd-${GNU_ARCH}.jar \
  36. ${MODJAVA_JAR_DIR}/jna-platform.jar
  37. ${INSTALL_DATA} ${WRKSRC}/build/jna*.jar ${MODJAVA_JAR_DIR}
  38. cp -r ${WRKSRC}/doc/javadoc ${MODJAVA_DOC_DIR}
  39. do-test:
  40. cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant \
  41. ${MODJAVA_BUILD_ARGS} test
  42. ${SHELL} ${FILESDIR}/test.sh
  43. .include <bsd.port.mk>