mirror of
https://git.freebsd.org/ports.git
synced 2025-05-06 02:47:37 -04:00
- Remove all references to defunct ARCH arm - Remove all references to defunct ARCH sparc64 - Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64 ARCH - Remove sysutils/afbinit requires defunct sparc64 ARCH - Remove all references to bktr driver - Remove all references to defunct FreeBSD_12 - Remove all references to OSVERSION/OSREL corresponding to 12 - Remove conditionals in Mk/Uses/cabal.mk - Remove sparc reference from Mk/Uses/qt-dist.mk - Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64 - Remove BROKEN_FreeBSD_12* from: - Remove OpenSSL patches from: - Remove conditional flags for OSVERSION >= 1300000 to fixed flags. Also move conditional flags for non sparc64/arm ARCH to fixed flags. Reviewed by: brooks, jbeich, rene, salvadore Differential Revision: https://reviews.freebsd.org/D42068
90 lines
2.4 KiB
Makefile
90 lines
2.4 KiB
Makefile
PORTNAME= netty
|
|
PORTVERSION= 4.1.53
|
|
DISTVERSIONSUFFIX= .Final
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= http://dl.bintray.com/netty/downloads/
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
COMMENT= Java NIO client server framework
|
|
WWW= https://netty.io/
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cpe tar:bzip2
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 8+
|
|
JAVA_EXTRACT= yes
|
|
NO_ARCH= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.Final
|
|
|
|
DOCDIRS= javadoc \
|
|
license
|
|
DOCFILES= CONTRIBUTING.md \
|
|
LICENSE.txt \
|
|
NOTICE.txt \
|
|
README.md
|
|
|
|
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar \
|
|
${JAVAJARDIR}/${PORTNAME}.jar
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "aarch64"
|
|
NETTY_ARCH= aarch_64
|
|
.elif ${ARCH} == "amd64"
|
|
NETTY_ARCH= x86_64
|
|
.elif ${ARCH} == "arm6"
|
|
NETTY_ARCH= arm_32
|
|
.elif ${ARCH} == "arm7"
|
|
NETTY_ARCH= arm_32
|
|
.elif ${ARCH} == "i386"
|
|
NETTY_ARCH= x86_32
|
|
.elif ${ARCH} == "powerpc"
|
|
NETTY_ARCH= ppc_32
|
|
.elif ${ARCH:Mpowerpc64*}
|
|
NETTY_ARCH= ppc_64
|
|
.else
|
|
# Default to ${ARCH}
|
|
NETTY_ARCH= ${ARCH}
|
|
.endif
|
|
|
|
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
|
|
CFLAGS+= -Wno-error=int-conversion
|
|
.endif
|
|
|
|
post-extract:
|
|
(cd ${WRKSRC} && \
|
|
${JAR} xf jar/netty-transport-native-kqueue-${PORTVERSION}.Final-sources.jar)
|
|
(cd ${WRKSRC} && \
|
|
${JAR} xf jar/netty-transport-native-unix-common-${PORTVERSION}.Final-sources.jar)
|
|
@${SED} -e 's!%%NETTY_ARCH%%!${NETTY_ARCH}!g' \
|
|
-e 's!%%JAVA_HOME%%!${JAVA_HOME}!g' \
|
|
${FILESDIR}/Makefile.in > ${WRKSRC}/Makefile
|
|
|
|
pre-install:
|
|
@${MKDIR} ${WRKSRC}/jar/all-in-one/META-INF/native
|
|
@${MV} ${WRKSRC}/libnetty_transport_native_kqueue*.so \
|
|
${WRKSRC}/jar/all-in-one/META-INF/native/
|
|
@(cd ${WRKSRC}/jar/all-in-one && ${JAR} uvf ${PORTNAME}-all-${PORTVERSION}.Final.jar META-INF/native/libnetty_transport_native_kqueue*.so)
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/jar/all-in-one/${PORTNAME}-all-${PORTVERSION}.Final.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar
|
|
${LN} -nfs ${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
|
.for DIR in ${DOCDIRS}
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIR} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.for FILE in ${DOCFILES}
|
|
${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|