Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # $OpenBSD: Makefile,v 1.9 2017/05/12 15:11:17 espie Exp $
  2. COMMENT= Tanuki Java Service Wrapper
  3. SVN_REV= 1780
  4. DISTNAME= wrapper-code-${SVN_REV}-trunk
  5. PKGNAME= java-tanukiwrapper-3.5.19.1
  6. REVISION= 3
  7. CATEGORIES= java
  8. HOMEPAGE= http://wrapper.tanukisoftware.com/
  9. MASTER_SITES= https://distfiles.nl/
  10. # GPLv2
  11. # http://wrapper.tanukisoftware.com/doc/english/licenseCommunity.html
  12. PERMIT_PACKAGE_CDROM= Yes
  13. EXTRACT_SUFX= .zip
  14. MODULES= java
  15. MODJAVA_VER= 1.6+
  16. MODJAVA_BUILD= ant
  17. .include <bsd.port.arch.mk>
  18. .if ${PROPERTIES:Mlp64}
  19. BITS=64
  20. .else
  21. BITS=32
  22. .endif
  23. MODJAVA_BUILD_ARGS=-Dbits=${BITS}
  24. WANTLIB= c iconv m pthread
  25. LIB_DEPENDS= converters/libiconv
  26. USE_GMAKE= Yes
  27. WRKDIST= ${WRKDIR}/${DISTNAME}/wrapper
  28. SUBST_VARS+= CC CFLAGS
  29. post-extract:
  30. cp ${FILESDIR}/Makefile-openbsd-x86-${BITS}.gmake ${WRKSRC}/src/c/
  31. pre-configure:
  32. ${SUBST_CMD} ${WRKSRC}/src/c/Makefile-openbsd-x86-${BITS}.gmake
  33. do-install:
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/java/classes/ \
  35. ${PREFIX}/lib/tanukuwrapper/
  36. ${INSTALL_DATA} ${WRKSRC}/lib/wrapper.jar \
  37. ${PREFIX}/share/java/classes/tanukiwrapper.jar
  38. ${INSTALL_PROGRAM} ${WRKSRC}/lib/libwrapper.so ${PREFIX}/lib/tanukuwrapper/
  39. ${INSTALL_PROGRAM} ${WRKSRC}/bin/wrapper ${PREFIX}/sbin/tanukiwrapper
  40. do-test:
  41. cd ${WRKSRC} && ant -Dbits=${BITS} -f build-tests.xml
  42. .include <bsd.port.mk>