2001-12-27 19:26:41 +00:00
|
|
|
# New ports collection makefile for: clip
|
|
|
|
# Date created: Dec 23, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= clip
|
2006-07-13 22:26:44 +00:00
|
|
|
DISTVERSION= 1.1.16-1
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 6
|
2003-09-23 08:06:25 +00:00
|
|
|
CATEGORIES= databases lang
|
2006-04-16 13:46:03 +00:00
|
|
|
MASTER_SITES= ftp://ftp.linux.ru.net/mirrors/clip/ \
|
2006-07-13 22:26:44 +00:00
|
|
|
ftp://www.cis.by/pub/clip/pub/clip/ \
|
|
|
|
http://clip.cis.by/mirror/pub/clip/ \
|
|
|
|
ftp://ftp.itk.ru/pub/clip/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= x-clip
|
2006-04-16 13:46:03 +00:00
|
|
|
DISTNAME= ${PORTNAME}-prg-${DISTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
2004-06-29 17:25:36 +00:00
|
|
|
DIST_SUBDIR= clip
|
2001-12-27 19:26:41 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= xBase and Clipper language compatible compiler
|
2001-12-27 19:26:41 +00:00
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
|
|
wget:${PORTSDIR}/ftp/wget \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
imake:${PORTSDIR}/devel/imake
|
2005-04-17 08:52:35 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
gtkextra.17:${PORTSDIR}/x11-toolkits/gtkextra \
|
|
|
|
gd.4:${PORTSDIR}/graphics/gd \
|
2006-07-13 22:26:44 +00:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2 \
|
|
|
|
glade-2.0:${PORTSDIR}/devel/libglade2 \
|
2005-04-17 08:52:35 +00:00
|
|
|
fcgi.0:${PORTSDIR}/www/fcgi
|
|
|
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
|
|
wget:${PORTSDIR}/ftp/wget
|
2004-06-29 17:25:36 +00:00
|
|
|
|
2006-04-16 13:46:03 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-prg-${DISTVERSION}
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2008-04-23 23:43:12 +00:00
|
|
|
USE_XORG+= x11 xau ice xproto xmu xpm
|
2004-02-04 05:25:22 +00:00
|
|
|
WANT_GNOME= yes
|
2006-04-01 12:58:18 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2008-04-23 23:43:12 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-02-04 05:25:22 +00:00
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
OPTIONS= IODBC "iODBC support" on \
|
|
|
|
UNIXODBC "unixODBC support (not with iODBC)" off \
|
|
|
|
MYSQL "MySQL support" off \
|
|
|
|
PGSQL "PostgreSQL support" off \
|
|
|
|
FIREBIRD "Firebird (Interbase) support" off
|
|
|
|
|
2003-09-23 08:06:25 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-26 09:33:38 +00:00
|
|
|
.if ${ARCH} != "i386"
|
2006-04-16 13:46:03 +00:00
|
|
|
BROKEN= Does not compile on !i386
|
2004-02-26 09:33:38 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
# OPT_CLIPLIBS contains the optional subdirectories built by
|
|
|
|
# the patched ${WRKSRC}/cliplibs/Makefile
|
|
|
|
# Not currently built: clip-oracle
|
2003-11-04 15:34:45 +00:00
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
# Either IODBC or UNIXODBC
|
|
|
|
.if defined(WITH_IODBC)
|
2003-09-23 08:06:25 +00:00
|
|
|
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
|
|
|
|
PLIST_SUB= ODBC=""
|
2005-04-17 08:52:35 +00:00
|
|
|
OPT_CLIPLIBS+=clip-odbc
|
|
|
|
.elif defined(WITH_UNIXODBC)
|
2003-09-23 08:06:25 +00:00
|
|
|
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
|
|
|
PLIST_SUB= ODBC=""
|
2005-04-17 08:52:35 +00:00
|
|
|
OPT_CLIPLIBS+=clip-odbc
|
2003-09-23 08:06:25 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB= ODBC="@comment "
|
|
|
|
.endif
|
2003-11-04 15:34:45 +00:00
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
2003-09-23 08:06:25 +00:00
|
|
|
USE_MYSQL= yes
|
|
|
|
PLIST_SUB+= MYSQL=""
|
2005-04-17 08:52:35 +00:00
|
|
|
OPT_CLIPLIBS+=clip-mysql
|
2003-09-23 08:06:25 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
2003-11-04 15:34:45 +00:00
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 00:35:55 +00:00
|
|
|
USE_PGSQL= yes
|
2003-09-23 08:06:25 +00:00
|
|
|
PLIST_SUB+= PGSQL=""
|
2005-04-17 08:52:35 +00:00
|
|
|
OPT_CLIPLIBS+=clip-postgres
|
2003-09-23 08:06:25 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
2003-11-04 15:34:45 +00:00
|
|
|
|
2005-04-17 08:52:35 +00:00
|
|
|
.if defined(WITH_FIREBIRD)
|
2003-09-23 08:06:25 +00:00
|
|
|
LIB_DEPENDS+= gds.1:${PORTSDIR}/${FIREBIRD_PORT}
|
|
|
|
PLIST_SUB+= IBASE=""
|
2005-04-17 08:52:35 +00:00
|
|
|
OPT_CLIPLIBS+=clip-interbase
|
2003-09-23 08:06:25 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= IBASE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-10-17 10:13:01 +00:00
|
|
|
USE_BISON= build
|
2003-09-23 08:06:25 +00:00
|
|
|
USE_GMAKE= yes
|
2004-03-30 19:20:22 +00:00
|
|
|
USE_ICONV= yes
|
2003-09-23 08:06:25 +00:00
|
|
|
REINPLACE_ARGS= -i ""
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG+= xpm xau ice xproto
|
2004-04-20 19:10:29 +00:00
|
|
|
USE_GNOME= gtk12 gtk20
|
2003-09-23 08:06:25 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/clip
|
2006-08-30 05:22:48 +00:00
|
|
|
USE_LDCONFIG= ${LOCALBASE}/clip/lib
|
2003-09-23 08:06:25 +00:00
|
|
|
ALL_TARGET= local
|
2005-04-17 08:52:35 +00:00
|
|
|
MAKE_ENV= HOME="${WRKDIR}" \
|
|
|
|
LANG="C" \
|
|
|
|
PGLIBDIR="${LOCALBASE}/lib" \
|
|
|
|
PGINCDIR="${LOCALBASE}/include" \
|
|
|
|
OPT_CLIPLIBS="${OPT_CLIPLIBS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
WITH_IODBC="${WITH_IODBC}" \
|
|
|
|
CLIP_CONFIGURE_FLAGS="-l"
|
2003-09-23 08:06:25 +00:00
|
|
|
|
2005-05-17 16:09:29 +00:00
|
|
|
FIREBIRD_PORT?= databases/firebird-client
|
2003-09-23 08:06:25 +00:00
|
|
|
|
|
|
|
BIN2STRIP= bdbf clip clip_bl clip_blank clip_cld clip_conv clip_dbf2txt \
|
|
|
|
clip_dbg clip_fl clip_hashextract clip_hindex clip_hseek \
|
|
|
|
clip_hv clip_prg clip_run clip_trans clip_we clipar cliphash \
|
2006-04-16 13:46:03 +00:00
|
|
|
cobra_clnt1 cobra_serv codb_ab codb_addobj codb_load codb_export\
|
|
|
|
codb_make codb_pack codb_rcheck codb_reindex ctosgml dbc \
|
2003-09-23 08:06:25 +00:00
|
|
|
ftosgml gen_tbl po_compat po_extr po_subst pp_ron sqlrun \
|
|
|
|
wcl2prg www_clip xclip
|
|
|
|
|
2006-04-16 13:46:03 +00:00
|
|
|
DIR2PRUNE= include/memdebug doc/clip-com doc/clip-oasis/nanfor doc/clip-oasis
|
|
|
|
|
2004-06-29 17:25:36 +00:00
|
|
|
pre-everything::
|
|
|
|
@if [ ! -z "${CLIPROOT}" ]; then \
|
|
|
|
${ECHO} Please unset CLIPROOT in your environment! ; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2003-09-23 08:06:25 +00:00
|
|
|
pre-configure:
|
|
|
|
@${FIND} ${WRKSRC} -name "Makefile*" -or -name Imakefile | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s|-Wall -g|${CFLAGS}|;s|-g -Wall|${CFLAGS}|;s|-Wall|${CFLAGS}|" \
|
|
|
|
-e "s|gcc|${CC}|;s|-O2||;s|-O ||;"
|
|
|
|
@${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s|-Wall -g|${CFLAGS}|;s|-g -Wall|${CFLAGS}|;s|-Wall|${CFLAGS}|" \
|
|
|
|
-e "s|-O2||"
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s|#include.*<malloc.h>|#include <stdlib.h>|" \
|
|
|
|
-e "s|#!/bin/sh|#!${LOCALBASE}/bin/bash|" \
|
|
|
|
-e "s|/usr/local|${LOCALBASE}|g" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
-e "s|/usr/X11R6|${LOCALBASE}|g"
|
2006-07-13 22:26:44 +00:00
|
|
|
${REINPLACE_CMD} "s|-I/usr/include|-I${LOCALBASE}/include -L${LOCALBASE}/lib|" \
|
|
|
|
${WRKSRC}/cliplibs/clip-xml/configure
|
|
|
|
${REINPLACE_CMD} -e "s|-I/usr/include|-I${LOCALBASE}/include|" \
|
|
|
|
-e "s|-lexpat|-L${LOCALBASE}/lib -lexpat|" \
|
|
|
|
${WRKSRC}/cliplibs/clip-xml/Makefile.in
|
2002-09-27 18:19:57 +00:00
|
|
|
|
2004-06-29 17:25:36 +00:00
|
|
|
post-build: # don't include emppty directories
|
2006-04-16 13:46:03 +00:00
|
|
|
${RMDIR} ${DIR2PRUNE:S|^|${WRKDIR}/cliproot/|}
|
2004-06-29 17:25:36 +00:00
|
|
|
|
2001-12-27 19:26:41 +00:00
|
|
|
do-install:
|
2004-06-29 17:25:36 +00:00
|
|
|
@${MKDIR} ${PREFIX}/clip
|
|
|
|
@${CP} -R ${WRKDIR}/cliproot/* ${PREFIX}/clip
|
2006-07-13 22:26:44 +00:00
|
|
|
.for FILE in ${BIN2STRIP}
|
2003-09-23 08:06:25 +00:00
|
|
|
@${STRIP_CMD} ${PREFIX}/clip/bin/${FILE}
|
|
|
|
.endfor
|
2004-01-23 05:28:50 +00:00
|
|
|
@for f in `${LS} ${PREFIX}/clip/lib/*.so` ; \
|
2003-09-23 08:06:25 +00:00
|
|
|
do \
|
|
|
|
${STRIP_CMD} $$f ; \
|
|
|
|
done
|
2001-12-27 19:26:41 +00:00
|
|
|
|
2004-06-29 17:25:36 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2006-04-16 13:46:03 +00:00
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
regression-test: install
|
|
|
|
(cd ${WRKSRC}/clip/tests && \
|
|
|
|
CLIPROOT=${PREFIX}/clip PATH="${PATH}:${PREFIX}/clip/bin" ${GMAKE} all)
|
|
|
|
.endif
|
|
|
|
|
2003-09-23 08:06:25 +00:00
|
|
|
.include <bsd.port.post.mk>
|