- Add USES=libtool and INSTALL_TARGET=install-strip
- Use standard do-install
This commit is contained in:
parent
eeeeb4be09
commit
9d1ef98d08
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366403
1 changed files with 11 additions and 17 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= tijmp
|
||||
PORTVERSION= 0.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= http://www.khelekore.org/jmp/tijmp/ \
|
||||
http://www.klop.ws/~ronald/software-mirrors/
|
||||
|
@ -10,33 +11,26 @@ MASTER_SITES= http://www.khelekore.org/jmp/tijmp/ \
|
|||
MAINTAINER= ronald-lists@klop.ws
|
||||
COMMENT= Tools Interface Java Memory Profiler
|
||||
|
||||
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
||||
OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS
|
||||
|
||||
USES= gmake
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= JAVA_HOME="${JAVA_HOME}"
|
||||
INSTALL_TARGET= install-strip
|
||||
USES= gmake libtool
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.6+
|
||||
JAVA_OS= native
|
||||
JAVA_BUILD= jdk
|
||||
NEED_JAVAC= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ENV= JAVA_HOME="${JAVA_HOME}"
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_FILES= lib/lib${PORTNAME}.la \
|
||||
lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 \
|
||||
%%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
PLIST_FILES= lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 \
|
||||
lib/lib${PORTNAME}.so.0.0.1 %%JAVAJARDIR%%/${PORTNAME}.jar
|
||||
PORTDOCS= ChangeLog README
|
||||
|
||||
OPTIMIZED_CFLAGS_CFLAGS= -O3
|
||||
|
||||
post-extract::
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} '/^jardir =/s|=.*|= ${JAVAJARDIR}|' ${WRKSRC}/Makefile.in
|
||||
@${SED} -i "" -e 's|/../share/java|${JAVAJARDIR}|' ${WRKSRC}/src/tijmp.c
|
||||
|
||||
do-install::
|
||||
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
||||
${INSTALL_DATA} ${WRKSRC}/src/.libs/lib${PORTNAME}.la ${STAGEDIR}${PREFIX}/lib/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/lib/
|
||||
${LN} -sf lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue