2000-06-07 16:52:01 +00:00
|
|
|
# New ports collection makefile for: JX
|
|
|
|
# Date created: 30 July 1999
|
|
|
|
# Whom: Davec <davec@unforgettable.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= JX
|
|
|
|
PORTVERSION= 1.5.3
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 2
|
2000-06-07 16:52:01 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
Only one of the Linuxberg sites (as it happens, the Brazilian one)
has the original distfile. A slightly different distfile is available
from Sunsite:
diff -burN linuxberg/include/make/jx_config_common sunsite/include/make/jx_config_common
--- linuxberg/include/make/jx_config_common Sat Sep 25 19:25:40 1999
+++ sunsite/include/make/jx_config_common Wed Sep 1 02:18:53 1999
@@ -7,14 +7,14 @@
ifeq ($(findstring g++,$(CXX)),g++)
ifeq ($(CXX),g++)
- JX_HAS_GNUG_PRE_2_8 := $(shell \
- if { $(CXX) --version | egrep '^(cygnus-)?2\.[0-7]' > /dev/null; } \
- then { echo 1; } \
- else { echo 0; } fi)
- JX_HAS_GNUG_2_95 := $(shell \
- if { $(CXX) --version | egrep '^(cygnus-)?2\.95' > /dev/null; } \
- then { echo 1; } \
- else { echo 0; } fi)
+ JX_HAS_GNUG_PRE_2_8 := \
+ $(shell \
+ if $(CXX) --version | egrep '^(cygnus-)?2\.[0-7]' > /dev/null; then \
+ echo 1; else echo 0; fi)
+ JX_HAS_GNUG_2_95 := \
+ $(shell \
+ if $(CXX) --version | egrep '^(cygnus-)?2\.95' > /dev/null; then \
+ echo 1; else echo 0; fi)
else # ! g++
ifeq (eg++,$(findstring eg++,$(CXX)))
# Assume that eg++ is egcs.
diff -burN linuxberg/include/make/jx_constants sunsite/include/make/jx_constants
--- linuxberg/include/make/jx_constants Sat Sep 25 19:25:30 1999
+++ sunsite/include/make/jx_constants Tue Sep 21 20:31:57 1999
@@ -23,9 +23,9 @@
ifdef JX_INSTALL_ROOT
override JX_INSTALL_ROOT := \
- ${shell if { test -d ${JX_INSTALL_ROOT} -a -w ${JX_INSTALL_ROOT}; } \
- then { echo ${JX_INSTALL_ROOT}; } \
- else { echo; } fi }
+ ${shell if { test -d ${JX_INSTALL_ROOT} -a -w ${JX_INSTALL_ROOT} } \
+ then { echo ${JX_INSTALL_ROOT} } \
+ else { echo } fi; }
endif
ifndef JX_INSTALL_ROOT
@@ -33,10 +33,10 @@
override JX_INSTALL_ROOT := ${JX_ROOT_BIN_DIRECTORY}
else
override JX_INSTALL_ROOT := \
- ${shell if { test -d ${HOME}/bin -a -w ${HOME}/bin; } \
- then { echo ${HOME}/bin; } \
+ ${shell if { test -d ${HOME}/bin -a -w ${HOME}/bin } \
+ then { echo ${HOME}/bin } \
else { test -d ${JX_ROOT}/bin || mkdir ${JX_ROOT}/bin; \
- echo ${JX_ROOT}/bin; } fi }
+ echo ${JX_ROOT}/bin } fi; }
endif
endif
diff -burN linuxberg/libjx/code/jXUtil.cc sunsite/libjx/code/jXUtil.cc
--- linuxberg/libjx/code/jXUtil.cc Mon Sep 27 20:59:37 1999
+++ sunsite/libjx/code/jXUtil.cc Thu Aug 26 20:22:57 1999
@@ -392,7 +392,7 @@
for (JIndex i=newCount; i>origCount; i--)
{
const JString* url = fileNameList->NthElement(i);
- if (url->IsEmpty() || url->GetFirstCharacter() == kURICommentMarker)
+ if (url->GetFirstCharacter() == kURICommentMarker)
{
fileNameList->DeleteElement(i);
}
2004-03-12 17:05:45 +00:00
|
|
|
MASTER_SITES= ftp://ftp.matrix.com.br/pub/linuxberg/files/x11/dev/ \
|
|
|
|
${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= libs/X/c++libs
|
2000-06-07 16:52:01 +00:00
|
|
|
DISTNAME= ${PORTNAME}_source-${PORTVERSION}
|
|
|
|
|
2003-09-07 23:39:04 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= A C++ application framework and widget library for X11
|
2000-06-07 16:52:01 +00:00
|
|
|
|
2001-09-11 03:32:41 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
2000-06-07 16:52:01 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2004-03-14 06:17:56 +00:00
|
|
|
USE_AUTOCONF_VER= 213
|
2003-03-08 18:33:06 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-07-10 01:44:23 +00:00
|
|
|
USE_X_PREFIX= yes
|
(1) Add new variable, XFREE86_VERSION, to specify which version of
XFree86 (3 or 4) to depend to when USE_XLIB is set.
XFREE86_VERSION defaults to 3 for now, but adventurous users can
override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB
will add a dependency to x11/XFree86; when it is set to 4, the
dependency will be to x11/XFree86-4-libraries. When
XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS
hacks to avoid messing with XFree86 are turned off.
Since XFree86 version 4 includes some software that used to be
separate ports, when XFREE86_VERSION=3 the following variables are
provided:
USE_DGS LIB_DEPENDS on x11/dgs
USE_FREETYPE LIB_DEPENDS on print/freetype
USE_MESA LIB_DEPENDS on graphics/Mesa3
USE_XPM LIB_DEPENDS on graphics/xpm
When XFREE86_VERSION=4, these variables have no effect. The
LIB_DEPENDS in the tree for the above four ports have all been
converted to the USE_* counterparts. For your information, this
is the count of the number of ports:
USE_DGS 0
USE_FREETYPE 16
USE_MESA 36
USE_XPM 236
There is a new variable, XAWVER, which is set to 6 when
XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also
passed to PLIST_SUB so ports that build Xaw based shared libraries
can use this variable to substitute the shlib version number.
There is also a provision of using a separate mtree file for
XFREE86_VERSION=4, but that part is not enabled yet.
Reviewed by: the ports list
Tested by: make index (XFREE86_VERSION=3 only)
(2) Add hebrew to list of valid categories.
Submitted by: nbm
2000-08-03 09:28:57 +00:00
|
|
|
USE_XPM= yes
|
2000-06-07 16:52:01 +00:00
|
|
|
USE_BISON= yes
|
2000-09-17 21:26:15 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_WRKSRC= ${WRKDIR}
|
2000-06-07 16:52:01 +00:00
|
|
|
USE_GMAKE= yes
|
2000-09-17 21:26:15 +00:00
|
|
|
MAKE_ARGS= CC="${CC}" CXX="${CXX}" \
|
|
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
|
|
|
|
MAKE_ENV= JX_INSTALL_ROOT="${PREFIX}/bin" \
|
2003-03-08 18:33:06 +00:00
|
|
|
JX_LIB_ROOT="${PREFIX}/lib"
|
2000-06-07 16:52:01 +00:00
|
|
|
PLIST_SUB= LIBACE="${LIBACE}" \
|
|
|
|
LIBJTOOL="${LIBJTOOL}" \
|
2000-09-17 21:26:15 +00:00
|
|
|
LIBJX="${LIBJX}"
|
|
|
|
INSTALLS_SHLIB= yes
|
2000-06-07 16:52:01 +00:00
|
|
|
|
|
|
|
# Installs dir with proper permissions
|
|
|
|
INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755
|
|
|
|
# the libraries
|
|
|
|
LIBFILES= libACE-5_0_2.so \
|
|
|
|
libjcore-1_5_3.a libjcore-1_5_3.so \
|
|
|
|
libjx-1_5_3.a libjx-1_5_3.so
|
|
|
|
# bin program files
|
2000-09-17 21:26:15 +00:00
|
|
|
PROGRAMFILES= lib/util/autodoc/autodoc programs/jxlayout/jxlayout \
|
|
|
|
programs/makemake/makemake
|
|
|
|
PROGRAMFILES_SCRIPT= jxlayout/jfdesign makemake/makecheck \
|
|
|
|
makemake/maketouch
|
2000-06-07 16:52:01 +00:00
|
|
|
# header files
|
|
|
|
INCLUDEDIR= jcore jx
|
|
|
|
INCLUDEDIR_ACE_WRKSRC= ACE/ACE_wrappers/ace
|
|
|
|
INCLUDEDIR_ACE_DIR= . CLASSIX
|
|
|
|
# documentation
|
2000-07-10 01:44:23 +00:00
|
|
|
DOCDIR_PREFIX= ${PREFIX}/share/doc/jx
|
2000-06-07 16:52:01 +00:00
|
|
|
DOCFILES= README FAQ LICENSE CHANGES
|
|
|
|
DOCDIRS= ACE jxlayout makemake
|
|
|
|
DOCDIRFILES= LICENSE README
|
|
|
|
# examples
|
|
|
|
EXAMPLEDIRS= tutorial
|
2000-07-10 01:44:23 +00:00
|
|
|
EXAMPLEDIR_PREFIX= ${PREFIX}/share/examples/jx
|
2000-06-07 16:52:01 +00:00
|
|
|
# xpm images
|
|
|
|
ICONDIRS= libjx/menu_image
|
|
|
|
ICONDIR_PREFIX= ${PREFIX}/share/jx
|
|
|
|
# additional configuration and header files
|
|
|
|
EXTRALIB_PREFIX= ${PREFIX}/lib/jx
|
|
|
|
EXTRALIBDIRS= jxlayout lib make
|
|
|
|
EXTRALIBFILES_JXLAYOUT= class_map need_font_list option_map
|
|
|
|
EXTRALIBFILES_MAKE_WRKSRC= include/make
|
|
|
|
EXTRALIBFILES_MAKE_DIR= . sys
|
|
|
|
# odd behavior
|
2003-03-08 18:33:06 +00:00
|
|
|
POSTBUILD_WRKSRC= jxlayout
|
2000-06-07 16:52:01 +00:00
|
|
|
# post patch preprocessing
|
2000-10-07 22:53:03 +00:00
|
|
|
POSTPATCH_FILES= post-patch-aa
|
2000-09-17 21:26:15 +00:00
|
|
|
# post configure placement directory
|
|
|
|
POSTCONFIGURE_WRKSRC= include/make/sys
|
|
|
|
# configuration preprocessing
|
|
|
|
CONFIGURE_PREPROCESSING_FILES= FreeBSD-2.x_g++ FreeBSD-3.x_g++
|
2000-06-07 16:52:01 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 300000
|
|
|
|
ALL_TARGET= freebsd3.x
|
|
|
|
LIBACE= 5
|
|
|
|
LIBJTOOL= 0
|
|
|
|
LIBJX= 1
|
|
|
|
.else
|
|
|
|
ALL_TARGET= freebsd2.x
|
|
|
|
LIBACE= 5.0
|
|
|
|
LIBJTOOL= 0.5
|
|
|
|
LIBJX= 1.5
|
|
|
|
.endif
|
|
|
|
|
2002-08-23 22:08:02 +00:00
|
|
|
# -CURRENT post gcc 3.1
|
|
|
|
.if ${OSVERSION} >= 500035
|
|
|
|
BROKEN= Does not work with gcc 3.x
|
|
|
|
.endif
|
|
|
|
|
2003-03-08 18:33:06 +00:00
|
|
|
# wrapper to allow makemake to work during build time
|
|
|
|
# it requires some libs which are not available in build time
|
|
|
|
makemake-extract-wrapper:
|
|
|
|
@${SED} \
|
|
|
|
-e 's|%libdir%|${WRKSRC}/lib|' \
|
|
|
|
-e 's|%makemake%|${WRKSRC}/programs/makemake/makemake|' \
|
|
|
|
${FILESDIR}/makemake-template \
|
|
|
|
> ${WRKDIR}/makemake
|
|
|
|
@${CHMOD} u+rx ${WRKDIR}/makemake
|
|
|
|
|
|
|
|
# have all relevant places point to location of the makemake wrapper
|
|
|
|
makemake-patch-path:
|
2003-03-23 04:58:15 +00:00
|
|
|
@${FIND} ${WRKSRC}/libjx ${WRKSRC}/libjcore \
|
2003-03-08 18:33:06 +00:00
|
|
|
-name "Make*" \
|
|
|
|
-exec ${REINPLACE_CMD} -E \
|
|
|
|
-e 's|makemake;|${WRKDIR}/makemake;|' \
|
|
|
|
{} \;
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|; makemake;|; ${WRKDIR}/makemake;|' \
|
|
|
|
${WRKSRC}/lib/Makefile
|
|
|
|
|
|
|
|
post-extract: makemake-extract-wrapper
|
|
|
|
|
|
|
|
post-patch: makemake-patch-path
|
2000-09-17 21:26:15 +00:00
|
|
|
.for i in ${CONFIGURE_PREPROCESSING_FILES}
|
|
|
|
@${CP} ${WRKSRC}/${POSTCONFIGURE_WRKSRC}/${i} ${WRKDIR}/${i}.in
|
2000-10-07 22:53:03 +00:00
|
|
|
@cd ${WRKDIR}; ${PATCH} -s ${i}.in < ${PATCHDIR}/${POSTPATCH_FILES}
|
2000-06-07 16:52:01 +00:00
|
|
|
.endfor
|
|
|
|
|
2000-09-17 21:26:15 +00:00
|
|
|
pre-configure:
|
|
|
|
@${CP} ${FILESDIR}/configure.in ${WRKDIR}
|
2002-11-11 20:45:20 +00:00
|
|
|
@cd ${WRKDIR}; ${AUTOCONF}
|
2000-09-17 21:26:15 +00:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
.for i in ${CONFIGURE_PREPROCESSING_FILES}
|
|
|
|
@${CP} ${WRKDIR}/${i} ${WRKSRC}/${POSTCONFIGURE_WRKSRC}/${i}
|
2000-06-07 16:52:01 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
# odd behavior
|
|
|
|
post-build:
|
|
|
|
.for i in ${POSTBUILD_WRKSRC}
|
2000-09-17 21:26:15 +00:00
|
|
|
@cd ${WRKSRC}/programs/${i}; ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS}
|
2000-06-07 16:52:01 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
# Install all documentation
|
|
|
|
@${INSTALL_DATA_DIR} ${DOCDIR_PREFIX}
|
|
|
|
.for i in ${DOCFILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCDIR_PREFIX}
|
|
|
|
.endfor
|
|
|
|
.for i in ${DOCDIRS}
|
|
|
|
@for j in ${DOCDIRFILES} ; \
|
|
|
|
do \
|
|
|
|
if [ -f ${WRKSRC}/programs/${i}/$${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/programs/${i}/$${j} \
|
|
|
|
${DOCDIR_PREFIX}/$${j}_${i} ; \
|
|
|
|
elif [ -f ${WRKSRC}/${i}/$${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i}/$${j} \
|
|
|
|
${DOCDIR_PREFIX}/$${j}_${i} ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCDIR_PREFIX}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/ACE/ACE_wrappers/VERSION \
|
|
|
|
${DOCDIR_PREFIX}/ACE_VERSION
|
|
|
|
# Install all examples
|
|
|
|
.for i in ${EXAMPLEDIRS}
|
|
|
|
@${INSTALL_DATA_DIR} ${EXAMPLEDIR_PREFIX}/${i} ; \
|
|
|
|
cd ${WRKSRC}/${i}; \
|
|
|
|
for j in * ; \
|
|
|
|
do \
|
|
|
|
if [ -f $${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA} $${j} ${EXAMPLEDIR_PREFIX}/${i} ; \
|
|
|
|
elif [ -d $${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR_PREFIX}/${i}/$${j} ; \
|
|
|
|
for k in $${j}/* ; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} $${k} ${EXAMPLEDIR_PREFIX}/${i}/$${j} ; \
|
|
|
|
done; \
|
2000-09-17 21:26:15 +00:00
|
|
|
fi ; \
|
2000-06-07 16:52:01 +00:00
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
.endif # !defined(NOPORTDOCS)
|
|
|
|
# Install all icons
|
|
|
|
.for i in ${ICONDIRS}
|
|
|
|
@${INSTALL_DATA_DIR} ${ICONDIR_PREFIX} ; \
|
|
|
|
for j in ${WRKSRC}/${i}/*.xpm ; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} $${j} ${ICONDIR_PREFIX} ; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
# Install all header files
|
|
|
|
.for i in ${INCLUDEDIR}
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/include/${i} ; \
|
2000-09-17 21:26:15 +00:00
|
|
|
for j in ${WRKSRC}/include/${i}/*.*h \
|
|
|
|
${WRKSRC}/include/${i}/*.tmpl \
|
|
|
|
${WRKSRC}/include/${i}/*.tmpls ; \
|
2000-06-07 16:52:01 +00:00
|
|
|
do \
|
2000-09-17 21:26:15 +00:00
|
|
|
if [ -f $${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA} $${j} ${PREFIX}/include/${i}/ ; \
|
|
|
|
fi ; \
|
2000-06-07 16:52:01 +00:00
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
.for i in ${INCLUDEDIR_ACE_DIR}
|
2000-09-17 21:26:15 +00:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/include/ace/${i} ; \
|
|
|
|
for j in ${WRKSRC}/${INCLUDEDIR_ACE_WRKSRC}/${i}/*.cpp \
|
|
|
|
${WRKSRC}/${INCLUDEDIR_ACE_WRKSRC}/${i}/*.h \
|
|
|
|
${WRKSRC}/${INCLUDEDIR_ACE_WRKSRC}/${i}/*.i ; \
|
2000-07-10 01:44:23 +00:00
|
|
|
do \
|
2000-09-17 21:26:15 +00:00
|
|
|
if [ -f $${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA} $${j} ${PREFIX}/include/ace/${i}/ ; \
|
|
|
|
fi ; \
|
2000-07-10 01:44:23 +00:00
|
|
|
done
|
2000-09-17 21:26:15 +00:00
|
|
|
.endfor
|
2000-06-07 16:52:01 +00:00
|
|
|
# Install all libraries
|
|
|
|
.for i in ${LIBFILES}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/lib/${i} ${PREFIX}/lib
|
|
|
|
.endfor
|
|
|
|
# Install additional library files
|
|
|
|
.for i in ${EXTRALIBDIRS}
|
|
|
|
@${INSTALL_DATA_DIR} ${EXTRALIB_PREFIX}/${i}
|
|
|
|
.endfor
|
|
|
|
.for i in ${EXTRALIBFILES_JXLAYOUT}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/programs/jxlayout/${i} \
|
|
|
|
${EXTRALIB_PREFIX}/jxlayout
|
|
|
|
.endfor
|
|
|
|
.for i in ${EXTRALIBFILES_MAKE_DIR}
|
|
|
|
@${INSTALL_DATA_DIR} ${EXTRALIB_PREFIX}/make/${i} ; \
|
|
|
|
for j in ${WRKSRC}/${EXTRALIBFILES_MAKE_WRKSRC}/${i}/* ; \
|
|
|
|
do \
|
|
|
|
if [ -f $${j} ]; \
|
|
|
|
then \
|
|
|
|
${INSTALL_DATA} $${j} ${EXTRALIB_PREFIX}/make/${i}/ ; \
|
2000-09-17 21:26:15 +00:00
|
|
|
fi ; \
|
2000-06-07 16:52:01 +00:00
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
# Install all programs
|
|
|
|
.for i in ${PROGRAMFILES}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
.for i in ${PROGRAMFILES_SCRIPT}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/programs/${i} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${LN} -sf libACE-5_0_2.so \
|
|
|
|
${PREFIX}/lib/libACE-5_0_2.so.${LIBACE}
|
|
|
|
@${LN} -sf libjcore-1_5_3.so \
|
|
|
|
${PREFIX}/lib/libjcore-1_5_3.so.${LIBJX}
|
|
|
|
@${LN} -sf libjx-1_5_3.so \
|
|
|
|
${PREFIX}/lib/libjx-1_5_3.so.${LIBJX}
|
|
|
|
.for i in ${LIBFILES}
|
|
|
|
@${LN} -sf ../../${i} ${EXTRALIB_PREFIX}/lib/${i}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|