1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Several enhancements/cleanups:

- HAS_CONFIGURE -> GNU_CONFIGURE;
- Don't bind to any particular virtual machine - install jit into
  ${LOCALBASE}/lib/tya;
- Respect CFLAGS.
This commit is contained in:
Maxim Sobolev 2000-09-11 07:37:23 +00:00
parent cfd1d42b4f
commit 503a9453ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32506
3 changed files with 39 additions and 13 deletions

View File

@ -14,28 +14,27 @@ EXTRACT_SUFX= .tgz
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
BUILD_DEPENDS= ${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
WRKSRC= ${WRKDIR}/${DISTNAME:S/a1/a1./}
ONLY_FOR_ARCHS= i386
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --with-jdk=${LOCALBASE}/${JAVADIR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-jdk=${JAVADIR}
JAVADIR= jdk1.1.8
JAVALIBDIR= ${PREFIX}/${JAVADIR}/lib/i386/green_threads/
PLIST_SUB= JAVADIR=${JAVADIR}
JAVADIR= ${LOCALBASE}/jdk1.1.8
JAVALIBDIR= ${PREFIX}/lib/tya
do-install:
@${MKDIR} ${JAVALIBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/libtya.so ${JAVALIBDIR}
post-install:
@${MKDIR} ${PREFIX}/${JAVADIR}/tya
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/${JAVADIR}/tya
@${MKDIR} ${PREFIX}/share/tya
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/tya
@${ECHO_MSG} ""
@${ECHO_MSG} "See ${PREFIX}/${JAVADIR}/tya/README for usage instructions."
@${ECHO_MSG} "See ${PREFIX}/share/tya/README for usage instructions."
@${ECHO_MSG} ""
.include <bsd.port.mk>

26
java/tya/files/patch-ab Normal file
View File

@ -0,0 +1,26 @@
--- Makefile.in 2000/09/10 20:08:34 1.1
+++ Makefile.in 2000/09/10 20:08:38
@@ -12,12 +12,12 @@
#TARGETFLAGS =-DDEBUG
# GCC specific options:
-COPTFLAGS=-O3
+#COPTFLAGS=-O3
#COPTFLAGS=-O6 -v
# CPU specific options:
-POPTFLAGS=-m486 -malign-loops=4 -malign-functions=4 -malign-jumps=4
+POPTFLAGS=-malign-loops=4 -malign-functions=4 -malign-jumps=4
#_____________________________________________________________
@@ -32,7 +32,7 @@
CSOURCES=tya.c tyarechelp.c tyarecode.c tyautil.c tyaruntime.c tyaexc.c
#
-CFLAGS = -Wall -pipe -shared $(COPTFLAGS) $(POPTFLAGS) $(TARGETFLAGS)
+CFLAGS += -Wall -shared $(COPTFLAGS) $(POPTFLAGS) $(TARGETFLAGS)
all: $(TARGET)

View File

@ -1,3 +1,4 @@
%%JAVADIR%%/lib/i386/green_threads/libtya.so
%%JAVADIR%%/tya/README
@dirrm %%JAVADIR%%/tya
lib/tya/libtya.so
share/tya/README
@dirrm share/tya
@dirrm lib/tya