diff options
author | steve <steve@FreeBSD.org> | 2000-09-18 05:29:14 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-09-18 05:29:14 +0800 |
commit | 69a32c70981fb6e624d90f66f79cd51455de62b8 (patch) | |
tree | f9c5214314c400b8eb748ea34b7b9d89a42e7225 /x11-toolkits/libjtree/Makefile | |
parent | 991e5673af7c6446577cfeddec2e113c934e62c6 (diff) | |
download | freebsd-ports-gnome-69a32c70981fb6e624d90f66f79cd51455de62b8.tar.gz freebsd-ports-gnome-69a32c70981fb6e624d90f66f79cd51455de62b8.tar.zst freebsd-ports-gnome-69a32c70981fb6e624d90f66f79cd51455de62b8.zip |
Fix these ports so that among other things they look for the jx header
files in the correct place.
Submitted by: maintainer
Diffstat (limited to 'x11-toolkits/libjtree/Makefile')
-rw-r--r-- | x11-toolkits/libjtree/Makefile | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/x11-toolkits/libjtree/Makefile b/x11-toolkits/libjtree/Makefile index 0fa988b6379e..cbbeaee75325 100644 --- a/x11-toolkits/libjtree/Makefile +++ b/x11-toolkits/libjtree/Makefile @@ -7,6 +7,7 @@ PORTNAME= libjtree PORTVERSION= 1.1.7 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ftp://ftp.newplanetsoftware.com/pub/jx/source-1.5.3/ \ ftp://ftp.newplanetsoftware.com/pub/jcc/source/ \ @@ -16,32 +17,27 @@ DISTNAME= JTree_source-${PORTVERSION} MAINTAINER= lioux@linf.unb.br -BUILD_DEPENDS= /nonexistent:${JXPORT}:patch +BUILD_DEPENDS= nonexistent:${JXPORT}:configure \ + makemake:${JXPORT} LIB_DEPENDS= jx-1_5_3.1:${JXPORT} WRKSRC= ${WRKDIR}/JX-1.5.3 -USE_XLIB= yes -INSTALLS_SHLIB= yes +USE_X_PREFIX= yes USE_GMAKE= yes +MAKE_ARGS= CC="${CC}" CXX="${CXX}" \ + CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" MAKE_ENV= JX_INSTALL_ROOT="${PREFIX}/bin" \ - JX_LIB_ROOT="${PREFIX}/lib" \ - X11PREFIX="${X11PREFIX}" \ - PORTCFLAGS="${CFLAGS}" \ - PORTCXXFLAGS="${CXXFLAGS}" \ - PORTINCLUDES="${PORTINCLUDES}" + JX_LIB_ROOT="${PREFIX}/lib" PLIST_SUB= PORTNAME="${PORTNAME}" \ LIBNUMBER="${LIBNUMBER}" \ LIBVERSION="${LIBVERSION}" \ EXTRALIBFILES_MAKE_FILES="${EXTRALIBFILES_MAKE_FILES}" \ INCLUDEDIR="${INCLUDEDIR}" - -# Proper X11R6 Prefix -# Change it, if you need it -X11PREFIX?= ${X11BASE} +INSTALLS_SHLIB= yes # Make environment -PORTINCLUDES= -I${LOCALBASE}/include/jx +PORTINCLUDES= -I${X11BASE}/include/jx -I${X11BASE}/include/jcore # Installs dir with proper permissions INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 @@ -52,7 +48,7 @@ LIBFILES= ${PORTNAME}-${LIBVERSION}.a ${PORTNAME}-${LIBVERSION}.so # header files INCLUDEDIR= jtree # documentation -DOCDIR_PREFIX= ${PREFIX}/share/doc/JX +DOCDIR_PREFIX= ${PREFIX}/share/doc/jx DOCDIRS= ${PORTNAME} DOCDIRFILES= LICENSE # additional configuration and header files @@ -64,7 +60,7 @@ EXTRALIBFILES_MAKE_FILES= jtree_constants JXPORT= ${PORTSDIR}/x11-toolkits/jx JXPORT_WRKSRC= ${JXPORT}/work/JX-1.5.3 # main jx distribution files needed for building -COPY_JXDIRS= include lib libjcore +COPY_JXDIRS= include COPY_JXFILES= Makefile .include <bsd.port.pre.mk> @@ -91,9 +87,14 @@ post-extract: @${CP} -p ${JXPORT_WRKSRC}/${i} ${WRKSRC} .endfor +post-patch: + @${ECHO} "SEARCHDIRS += ${PORTINCLUDES}" >> \ + ${WRKSRC}/${EXTRALIBFILES_MAKE_WRKSRC}/jx_constants + post-build: @cd ${WRKSRC}/${PORTNAME}; ${SETENV} ${MAKE_ENV} makemake; \ - ${SETENV} ${MAKE_ENV} ${GMAKE} + ${SETENV} ${MAKE_ENV} ${GMAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} do-install: .if !defined(NOPORTDOCS) |