1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Add JAVAC and JAR variables to the Makefile so they are easier to

override.
- Also install the doc files in the post-install target.

PR:		20718
Submitted by:	maintainer
This commit is contained in:
Steve Price 2000-09-05 02:09:27 +00:00
parent 7462b5d634
commit 5a916816b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32292
6 changed files with 66 additions and 15 deletions

View File

@ -16,12 +16,19 @@ MAINTAINER= dglo@SSEC.WISC.EDU
BUILD_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk
MAKE_ENV+= JAVAC=${LOCALBASE}/jdk1.1.8/bin/javac
ALL_TARGET= jar
do-install:
@${MKDIR} ${PREFIX}/share/java/classes
@${INSTALL_DATA} ${WRKSRC}/mysql_comp.jar ${LOCALBASE}/share/java/classes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mysql-jdbc
@(cd ${WRKSRC}/doc && ${TAR} -c -f - .) \
| (cd ${PREFIX}/share/doc/mysql-jdbc && ${TAR} --unlink -x -f -)
@(cd ${PREFIX} \
&& find share/doc/mysql-jdbc -type f -print >> ${TMPPLIST})
.endif
.include <bsd.port.mk>

View File

@ -1,11 +1,21 @@
--- Makefile.orig Mon Feb 21 23:43:51 2000
+++ Makefile Sat Mar 4 09:34:31 2000
@@ -3,7 +3,7 @@
+++ Makefile Sun Aug 27 13:38:46 2000
@@ -3,14 +3,16 @@
# $Id: Makefile,v 1.2 1998/08/25 04:02:25 mmatthew Exp $
#
-JAVAC = /usr/local/jdk118/bin/javac
+JAVAC = javac
+JAVA_HOME ?= /usr/local/jdk1.1.8
+JAVAC ?= $(JAVA_HOME)/bin/javac
+JAR ?= $(JAVA_HOME)/bin/jar
JAVAC_FLAGS =-O -g
all:
$(JAVAC) $(JAVAC_FLAGS) org/gjt/mm/mysql/*.java
jar: all
- jar -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf mysql_comp.jar org/gjt/mm/mysql/*.class
+ $(JAR) -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf mysql_comp.jar org/gjt/mm/mysql/*.class
clean:
rm -f org/gjt/mm/mysql/*.class org/gjt/mm/mysql/*~

View File

@ -16,12 +16,19 @@ MAINTAINER= dglo@SSEC.WISC.EDU
BUILD_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk
MAKE_ENV+= JAVAC=${LOCALBASE}/jdk1.1.8/bin/javac
ALL_TARGET= jar
do-install:
@${MKDIR} ${PREFIX}/share/java/classes
@${INSTALL_DATA} ${WRKSRC}/mysql_comp.jar ${LOCALBASE}/share/java/classes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mysql-jdbc
@(cd ${WRKSRC}/doc && ${TAR} -c -f - .) \
| (cd ${PREFIX}/share/doc/mysql-jdbc && ${TAR} --unlink -x -f -)
@(cd ${PREFIX} \
&& find share/doc/mysql-jdbc -type f -print >> ${TMPPLIST})
.endif
.include <bsd.port.mk>

View File

@ -1,11 +1,21 @@
--- Makefile.orig Mon Feb 21 23:43:51 2000
+++ Makefile Sat Mar 4 09:34:31 2000
@@ -3,7 +3,7 @@
+++ Makefile Sun Aug 27 13:38:46 2000
@@ -3,14 +3,16 @@
# $Id: Makefile,v 1.2 1998/08/25 04:02:25 mmatthew Exp $
#
-JAVAC = /usr/local/jdk118/bin/javac
+JAVAC = javac
+JAVA_HOME ?= /usr/local/jdk1.1.8
+JAVAC ?= $(JAVA_HOME)/bin/javac
+JAR ?= $(JAVA_HOME)/bin/jar
JAVAC_FLAGS =-O -g
all:
$(JAVAC) $(JAVAC_FLAGS) org/gjt/mm/mysql/*.java
jar: all
- jar -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf mysql_comp.jar org/gjt/mm/mysql/*.class
+ $(JAR) -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf mysql_comp.jar org/gjt/mm/mysql/*.class
clean:
rm -f org/gjt/mm/mysql/*.class org/gjt/mm/mysql/*~

View File

@ -16,12 +16,19 @@ MAINTAINER= dglo@SSEC.WISC.EDU
BUILD_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk
MAKE_ENV+= JAVAC=${LOCALBASE}/jdk1.1.8/bin/javac
ALL_TARGET= jar
do-install:
@${MKDIR} ${PREFIX}/share/java/classes
@${INSTALL_DATA} ${WRKSRC}/mysql_comp.jar ${LOCALBASE}/share/java/classes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mysql-jdbc
@(cd ${WRKSRC}/doc && ${TAR} -c -f - .) \
| (cd ${PREFIX}/share/doc/mysql-jdbc && ${TAR} --unlink -x -f -)
@(cd ${PREFIX} \
&& find share/doc/mysql-jdbc -type f -print >> ${TMPPLIST})
.endif
.include <bsd.port.mk>

View File

@ -1,11 +1,21 @@
--- Makefile.orig Mon Feb 21 23:43:51 2000
+++ Makefile Sat Mar 4 09:34:31 2000
@@ -3,7 +3,7 @@
+++ Makefile Sun Aug 27 13:38:46 2000
@@ -3,14 +3,16 @@
# $Id: Makefile,v 1.2 1998/08/25 04:02:25 mmatthew Exp $
#
-JAVAC = /usr/local/jdk118/bin/javac
+JAVAC = javac
+JAVA_HOME ?= /usr/local/jdk1.1.8
+JAVAC ?= $(JAVA_HOME)/bin/javac
+JAR ?= $(JAVA_HOME)/bin/jar
JAVAC_FLAGS =-O -g
all:
$(JAVAC) $(JAVAC_FLAGS) org/gjt/mm/mysql/*.java
jar: all
- jar -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf mysql_comp.jar org/gjt/mm/mysql/*.class
+ $(JAR) -cv0f mysql_uncomp.jar org/gjt/mm/mysql/*.class; jar -cvf mysql_comp.jar org/gjt/mm/mysql/*.class
clean:
rm -f org/gjt/mm/mysql/*.class org/gjt/mm/mysql/*~