1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/devel/libastylej/Makefile
2017-08-07 19:57:28 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Boris Samorodov <bsam@FreeBSD.org>
# $FreeBSD$
PORTNAME= libastylej
PORTVERSION= 3.0.1
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 gmake
USE_JAVA= yes
USE_LDCONFIG= yes
MAKE_ARGS+= JAVA_HOME=${JAVA_HOME}
WRKSRC= ${WRKDIR}/astyle/build/${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' \
${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>