1999-01-10 19:54:23 +01:00
|
|
|
# New ports collection makefile for: amaya
|
|
|
|
# Date created: 26 Dec 1998
|
2000-05-21 13:52:06 +02:00
|
|
|
# Whom: Don Croyle <croyle@gelemna.org>
|
1999-01-10 19:54:23 +01:00
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1999-01-10 19:54:23 +01:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= amaya
|
2002-11-09 01:46:19 +01:00
|
|
|
PORTVERSION= 6.4
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= www
|
1999-01-10 19:54:23 +01:00
|
|
|
MASTER_SITES= http://www.w3.org/Amaya/Distribution/ \
|
2000-07-09 20:41:39 +02:00
|
|
|
ftp://ftp.w3.org/pub/amaya/
|
2000-04-10 02:07:29 +02:00
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
2001-03-25 20:00:54 +02:00
|
|
|
DISTFILES= ${DISTNAME}.tgz
|
2001-12-02 19:20:59 +01:00
|
|
|
DIST_SUBDIR= amaya
|
1999-01-10 19:54:23 +01:00
|
|
|
|
2002-04-09 18:59:17 +02:00
|
|
|
MAINTAINER= adam-ports@blacktabby.org
|
2001-03-20 06:54:37 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Amaya/obj
|
1999-01-10 19:54:23 +01:00
|
|
|
|
2002-08-08 04:12:21 +02:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= imlib
|
|
|
|
USE_REINPLACE= yes
|
1999-01-10 19:54:23 +01:00
|
|
|
USE_GMAKE= yes
|
2001-03-20 06:54:37 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= ../configure
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2002-11-09 01:46:19 +01:00
|
|
|
CONFIGURE_ARGS= --with-gtk --without-graphic-libs
|
1999-12-26 15:23:25 +01:00
|
|
|
|
|
|
|
DICT?= none
|
|
|
|
|
|
|
|
.if ${DICT} != "none"
|
|
|
|
.if ${DICT} == "all"
|
2001-01-16 18:33:20 +01:00
|
|
|
DISTFILES+= Dutch.tgz
|
|
|
|
DISTFILES+= English.tgz
|
|
|
|
DISTFILES+= French.tgz
|
|
|
|
DISTFILES+= German.tgz
|
|
|
|
DISTFILES+= Italian.tgz
|
|
|
|
DISTFILES+= Spanish.tgz
|
|
|
|
DISTFILES+= Swedish.tgz
|
1999-12-26 15:23:25 +01:00
|
|
|
.else
|
2001-01-16 18:33:20 +01:00
|
|
|
DISTFILES+= ${DICT:S/$/.tgz/g}
|
1999-05-05 10:56:06 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2001-12-02 19:20:59 +01:00
|
|
|
pre-everything::
|
1999-12-26 15:23:25 +01:00
|
|
|
.if ${DICT} == "none"
|
|
|
|
@${ECHO_MSG} Several spellchecking dictionaries are available. To use
|
|
|
|
@${ECHO_MSG} one of them, define DICT to be the appropriate language.
|
1999-05-05 10:56:06 +02:00
|
|
|
.endif
|
|
|
|
|
1999-01-10 19:54:23 +01:00
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
|
2001-12-02 19:20:59 +01:00
|
|
|
post-patch:
|
2002-08-08 04:12:21 +02:00
|
|
|
${REINPLACE_CMD} -e 's|\"1.0\\.|\"1\\.|g ; \
|
2002-05-22 07:02:15 +02:00
|
|
|
s|gtk-config --cflags|imlib-config --cflags-gdk|g ; \
|
|
|
|
s|gtk-config --libs|imlib-config --libs-gdk|g ; \
|
|
|
|
s| -lgdk_imlib||g' ${WRKSRC}/../configure
|
2001-12-02 19:20:59 +01:00
|
|
|
|
1999-01-10 19:54:23 +01:00
|
|
|
post-configure:
|
2002-05-22 07:02:15 +02:00
|
|
|
${LN} -sf ${WRKSRC}/Options.orig ${WRKSRC}/Options
|
1999-01-10 19:54:23 +01:00
|
|
|
|
|
|
|
post-install:
|
2001-03-20 06:54:37 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../amaya/COPYRIGHT.html ${PREFIX}/Amaya/amaya
|
1999-12-26 15:23:25 +01:00
|
|
|
.if ${DICT} != "none"
|
2001-03-20 06:54:37 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/*.dic ${PREFIX}/Amaya/dicopar
|
1999-05-05 10:56:06 +02:00
|
|
|
${MV} ${TMPPLIST} ${TMPPLIST}.new
|
2001-03-20 06:54:37 +01:00
|
|
|
cd ${WRKDIR} && ls -1 *.dic | \
|
2002-08-08 04:12:21 +02:00
|
|
|
${SED} -e 's|^|Amaya/dicopar/|' > ${TMPPLIST}
|
1999-05-05 10:56:06 +02:00
|
|
|
${CAT} ${TMPPLIST}.new >> ${TMPPLIST}
|
|
|
|
${RM} ${TMPPLIST}.new
|
|
|
|
.endif
|
1999-01-10 19:54:23 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|