2010-10-24 20:58:58 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2010/10/24 21:40:09 ajacoutot Exp $
|
2000-04-11 20:08:46 +00:00
|
|
|
#
|
|
|
|
# Many variables moved to ../Makefile.inc
|
|
|
|
|
2007-09-15 20:38:20 +00:00
|
|
|
COMMENT= test-bed browser/authoring tool of the W3C
|
2001-05-06 04:22:45 +00:00
|
|
|
|
2001-10-02 20:18:59 +00:00
|
|
|
AMAYA_VERSION= 5.1
|
2000-04-11 20:08:46 +00:00
|
|
|
DISTNAME= amaya-src-${AMAYA_VERSION}
|
2010-06-06 12:27:26 +00:00
|
|
|
PKGNAME= amaya-${AMAYA_VERSION}p6
|
2000-04-11 20:08:46 +00:00
|
|
|
|
2001-10-02 20:18:59 +00:00
|
|
|
HOMEPAGE= http://www.w3.org/Amaya/
|
|
|
|
|
|
|
|
FLAVORS= motif gtk
|
|
|
|
FLAVOR?= motif
|
|
|
|
|
2010-04-24 20:18:39 +00:00
|
|
|
WANTLIB= ICE SM X11 Xext Xt c expat m pthread-stubs xcb z
|
2004-12-11 13:29:20 +00:00
|
|
|
|
2006-11-13 12:51:14 +00:00
|
|
|
|
2001-10-02 20:18:59 +00:00
|
|
|
.if ${FLAVOR:L} == "gtk"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-gtk=${LOCALBASE}
|
|
|
|
# I'm too lazy to write a proper imlib autoconf test.
|
2006-08-04 00:10:42 +00:00
|
|
|
LIB_DEPENDS+= gdk_imlib.>=19::graphics/imlib
|
2001-10-02 20:18:59 +00:00
|
|
|
|
2004-12-11 13:29:20 +00:00
|
|
|
WANTLIB+= Xi gdk gif glib gmodule gtk iconv intl jpeg png tiff
|
|
|
|
|
2001-10-02 20:18:59 +00:00
|
|
|
.elif ${FLAVOR:L} == "motif"
|
2000-04-11 20:08:46 +00:00
|
|
|
|
2001-04-18 15:01:02 +00:00
|
|
|
USE_MOTIF= any
|
2006-08-04 00:10:42 +00:00
|
|
|
LIB_DEPENDS+= jpeg.>=62::graphics/jpeg \
|
|
|
|
png.>=2::graphics/png
|
2001-10-02 20:18:59 +00:00
|
|
|
CONFIGURE_ARGS+= --without-gtk \
|
|
|
|
--with-motif-includes=${LOCALBASE}/include \
|
|
|
|
--with-motif-libraries=${LOCALBASE}/lib
|
|
|
|
|
|
|
|
.else
|
2007-09-15 23:36:43 +00:00
|
|
|
ERRORS+= "Fatal: Conflicting or missing flavor: '${FLAVOR}'"
|
2001-10-02 20:18:59 +00:00
|
|
|
.endif
|
2000-04-11 20:08:46 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Amaya
|
2001-10-02 20:18:59 +00:00
|
|
|
WRKBUILD= ${WRKDIR}/Amaya/obj
|
|
|
|
WRKDIST= ${WRKDIR}
|
2000-04-11 20:08:46 +00:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2007-04-07 14:54:12 +00:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-shared
|
2005-11-03 18:28:55 +00:00
|
|
|
AUTOCONF_VERSION= 2.13
|
2001-10-02 20:18:59 +00:00
|
|
|
CONFIGURE_STYLE= autoconf dest
|
2001-09-28 06:02:12 +00:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/../libwww/config
|
2001-03-17 12:23:44 +00:00
|
|
|
CONFIGURE_SCRIPT= ../configure
|
2007-04-28 19:45:41 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
|
|
|
LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2001-10-02 20:18:59 +00:00
|
|
|
CONFIGURE_ARGS+= --without-graphic-libs
|
|
|
|
|
|
|
|
# We need to regenerate configure in two places, Amaya/ and libwww/
|
|
|
|
AUTOCONF_DIR= ${WRKSRC}
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKDIST}/libwww && exec ${SETENV} \
|
|
|
|
${AUTOCONF_ENV} ${AUTOCONF}
|
2000-04-11 20:08:46 +00:00
|
|
|
|
2001-10-02 20:18:59 +00:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKBUILD} && cp Options.orig Options
|
2002-10-29 01:30:41 +00:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
2001-10-02 20:18:59 +00:00
|
|
|
|
2000-04-11 20:08:46 +00:00
|
|
|
pre-install:
|
|
|
|
${STRIP} ${WRKBUILD}/bin/amaya
|
|
|
|
${STRIP} ${WRKBUILD}/bin/print
|
|
|
|
|
2000-06-20 15:27:19 +00:00
|
|
|
post-install:
|
2001-10-02 20:18:59 +00:00
|
|
|
cd ${PREFIX}/bin; rm amaya; \
|
|
|
|
ln -s ${TRUEPREFIX}/Amaya/applis/bin/amaya
|
2000-06-20 15:27:19 +00:00
|
|
|
|
2000-04-11 20:08:46 +00:00
|
|
|
.include <bsd.port.mk>
|