1999-08-02 19:18:50 -04:00
|
|
|
# New ports collection makefile for: Code Crusader
|
|
|
|
# Date created: 30 July 1999
|
|
|
|
# Whom: Davec <davec@unforgettable.com>
|
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1999-08-02 19:18:50 -04:00
|
|
|
#
|
|
|
|
|
2000-04-11 17:30:15 -04:00
|
|
|
PORTNAME= code_crusader
|
|
|
|
PORTVERSION= 2.1.4
|
2000-09-17 17:29:14 -04:00
|
|
|
PORTREVISION= 1
|
1999-08-02 19:18:50 -04:00
|
|
|
CATEGORIES= devel
|
2001-06-22 14:39:39 -04:00
|
|
|
MASTER_SITES= ftp://ftp.bitcon.no/.2/linuxberg/files/x11/dev/ \
|
|
|
|
ftp://ftp.krasnodar.ru/pub/unix/IDE/CodeCrusader/
|
2000-06-09 16:39:30 -04:00
|
|
|
DISTNAME= ${PORTNAME}_source-${PORTVERSION}
|
1999-08-02 19:18:50 -04:00
|
|
|
|
2000-10-03 01:12:49 -04:00
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
1999-08-02 19:18:50 -04:00
|
|
|
|
2000-10-03 01:00:35 -04:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${JXPORT}:configure \
|
2000-09-17 17:29:14 -04:00
|
|
|
makemake:${JXPORT}
|
|
|
|
LIB_DEPENDS= jx-1_5_3.1:${JXPORT} \
|
|
|
|
jtoolbar-0_5_4.0:${PORTSDIR}/x11-toolkits/libjtoolbar \
|
|
|
|
jtree-1_1_7.1:${PORTSDIR}/x11-toolkits/libjtree
|
|
|
|
RUN_DEPENDS= exctags:${PORTSDIR}/devel/ctags \
|
|
|
|
gmake:${PORTSDIR}/devel/gmake
|
1999-08-02 19:18:50 -04:00
|
|
|
|
1999-12-10 14:40:46 -05:00
|
|
|
WRKSRC= ${WRKDIR}/JX-1.5.3
|
1999-08-02 19:18:50 -04:00
|
|
|
|
|
|
|
USE_XLIB= yes
|
2000-06-09 16:39:30 -04:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
2000-09-17 17:29:14 -04:00
|
|
|
MAKE_ARGS= CC="${CC}" CXX="${CXX}" \
|
|
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
|
|
|
|
MAKE_ENV= JX_INSTALL_ROOT="${X11BASE}/bin" \
|
|
|
|
JX_LIB_ROOT="${X11BASE}/lib"
|
2001-03-13 23:29:22 -05:00
|
|
|
PLIST_SUB= PORTNAME="${PORTNAME}" LN="${LN} -s" \
|
|
|
|
RM="${RM} -f"
|
1999-08-02 19:18:50 -04:00
|
|
|
|
2000-06-09 16:39:30 -04:00
|
|
|
# Make environment
|
2000-09-17 17:29:14 -04:00
|
|
|
PORTINCLUDES= -I${X11BASE}/include -I${X11BASE}/include/jx \
|
|
|
|
-I${X11BASE}/include/jcore \
|
|
|
|
-I${X11BASE}/include/jtoolbar \
|
|
|
|
-I${X11BASE}/include/jtree \
|
|
|
|
-I${X11BASE}/share/jx
|
|
|
|
PORTLIBS= -L${X11BASE}/lib
|
2000-06-09 16:39:30 -04:00
|
|
|
|
|
|
|
# Installs dir with proper permissions
|
|
|
|
INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755
|
|
|
|
# program files
|
|
|
|
PROGRAMFILES= code_crusader/jcc
|
|
|
|
PROGRAMFILES_SCRIPT= code_crusader/dirdiff
|
|
|
|
# documents
|
2001-01-16 12:33:20 -05:00
|
|
|
DOCFILES= FAQ LICENSE README.binary
|
|
|
|
DOCDIR_PREFIX= ${PREFIX}/share/doc/${PORTNAME}
|
2000-06-09 16:39:30 -04:00
|
|
|
# additional configuration and header files
|
2000-09-17 17:29:14 -04:00
|
|
|
EXTRALIB_PREFIX= ${X11BASE}/lib/jx
|
|
|
|
EXTRALIBFILES_MAKE_WRKSRC= include/make
|
2000-06-09 16:39:30 -04:00
|
|
|
# examples
|
|
|
|
EXAMPLEDIRS= desktop macros
|
|
|
|
EXAMPLEDIR_PREFIX= ${PREFIX}/share/examples/${PORTNAME}
|
2000-10-03 01:00:35 -04:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-06-09 16:39:30 -04:00
|
|
|
# main jx distribution port wrksrc
|
|
|
|
JXPORT= ${PORTSDIR}/x11-toolkits/jx
|
2000-10-03 01:00:35 -04:00
|
|
|
JXPORT_WRKSRC!= cd ${JXPORT} && ${MAKE} -V WRKSRC
|
2000-06-09 16:39:30 -04:00
|
|
|
# main jx distribution files needed for building
|
2000-09-17 17:29:14 -04:00
|
|
|
COPY_JXDIRS= include
|
2000-06-09 16:39:30 -04:00
|
|
|
COPY_JXFILES= Makefile
|
|
|
|
JX_MAKE_CONSTANTS= jtoolbar_constants jtree_constants
|
1999-08-03 01:34:55 -04:00
|
|
|
|
1999-08-10 16:37:25 -04:00
|
|
|
.if ${OSVERSION} >= 300000
|
1999-08-02 19:18:50 -04:00
|
|
|
ALL_TARGET= freebsd3.x
|
|
|
|
.else
|
|
|
|
ALL_TARGET= freebsd2.x
|
|
|
|
.endif
|
|
|
|
|
2000-06-09 16:39:30 -04:00
|
|
|
post-extract:
|
|
|
|
.for i in ${COPY_JXDIRS}
|
|
|
|
@${CP} -Rp ${JXPORT_WRKSRC}/${i} ${WRKSRC}
|
|
|
|
.endfor
|
|
|
|
.for i in ${COPY_JXFILES}
|
|
|
|
@${CP} -p ${JXPORT_WRKSRC}/${i} ${WRKSRC}
|
|
|
|
.endfor
|
1999-08-02 19:18:50 -04:00
|
|
|
|
2000-09-17 17:29:14 -04:00
|
|
|
post-patch:
|
|
|
|
@${ECHO} "SEARCHDIRS += ${PORTINCLUDES}" >> \
|
|
|
|
${WRKSRC}/${EXTRALIBFILES_MAKE_WRKSRC}/jx_constants
|
|
|
|
@${ECHO} "\nLOADLIBS += ${PORTLIBS}" >> \
|
|
|
|
${WRKSRC}/programs/${PORTNAME}/Make.header
|
|
|
|
|
2000-06-09 16:39:30 -04:00
|
|
|
pre-build:
|
|
|
|
.for i in ${JX_MAKE_CONSTANTS}
|
|
|
|
@${LN} -sf ${EXTRALIB_PREFIX}/make/${i} ${WRKSRC}/include/make
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/programs/${PORTNAME}; ${SETENV} ${MAKE_ENV} makemake; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
# Install all documentation
|
|
|
|
@${INSTALL_DATA_DIR} ${DOCDIR_PREFIX}
|
|
|
|
.for i in ${DOCFILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/programs/${PORTNAME}/${i} ${DOCDIR_PREFIX}
|
|
|
|
.endfor
|
|
|
|
# Install all examples
|
|
|
|
.for i in ${EXAMPLEDIRS}
|
|
|
|
@${INSTALL_DATA_DIR} ${EXAMPLEDIR_PREFIX}/${i} ; \
|
|
|
|
cd ${WRKSRC}/programs/${PORTNAME}/${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; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
.endif # !defined(NOPORTDOCS)
|
|
|
|
# Install all programs
|
|
|
|
.for i in ${PROGRAMFILES}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/programs/${i} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
.for i in ${PROGRAMFILES_SCRIPT}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/programs/${i} ${PREFIX}/bin
|
|
|
|
.endfor
|
2001-03-13 23:29:22 -05:00
|
|
|
@${LN} -s jcc ${PREFIX}/bin/codecrusader
|
1999-08-02 19:18:50 -04:00
|
|
|
|
2000-01-07 11:40:17 -05:00
|
|
|
.include <bsd.port.post.mk>
|