freebsd-ports/devel/libastylej/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

40 lines
1.1 KiB
Makefile

# Created by: Boris Samorodov <bsam@FreeBSD.org>
# $FreeBSD$
PORTNAME= libastylej
PORTVERSION= 3.0.1
PORTREVISION= 2
CATEGORIES= devel java textproc
MASTER_SITES= SF/astyle/astyle/astyle%20${PORTVERSION}
PKGNAMESUFFIX?= # for slave port
DISTNAME= astyle_${PORTVERSION}_linux
MAINTAINER= bsam@FreeBSD.org
COMMENT= Source code indenter, formatter, and beautifier (JNI library)
LICENSE= LGPL3
ALL_TARGET= java
LDFLAGS+= -s
USES= compiler:c++11-lang gmake
USE_JAVA= yes
USE_LDCONFIG= yes
MAKE_ARGS+= JAVA_HOME=${JAVA_HOME}
WRKSRC= ${WRKDIR}/astyle/build/${CHOSEN_COMPILER_TYPE}
PLIST_FILES= lib/jni/libastylej${PKGNAMESUFFIX}.so lib/jni/libastylej${PKGNAMESUFFIX}.so.${PORTVERSION}
post-patch:
${REINPLACE_CMD} -e 's,\(JAVAINCS.*=.*\),\1 -I$(JAVA_HOME)/include/freebsd,' \
-e '176 s,libastylej\.so,libastylej${PKGNAMESUFFIX}\.so,2' \
-e 's/CXX = g++/CXX ?= g++/' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/jni
${INSTALL_DATA} ${WRKSRC}/bin/*.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/jni
${LN} -sf libastylej${PKGNAMESUFFIX}.so.${PORTVERSION} \
${STAGEDIR}${PREFIX}/lib/jni/libastylej${PKGNAMESUFFIX}.so
.include <bsd.port.mk>