76 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.18 2007/09/15 20:38:20 merdely Exp $
2000-04-11 20:08:46 +00:00
#
# Many variables moved to ../Makefile.inc
COMMENT= test-bed browser/authoring tool of the W3C
AMAYA_VERSION= 5.1
2000-04-11 20:08:46 +00:00
DISTNAME= amaya-src-${AMAYA_VERSION}
2007-04-28 19:45:41 +00:00
PKGNAME= amaya-${AMAYA_VERSION}p3
2000-04-11 20:08:46 +00:00
HOMEPAGE= http://www.w3.org/Amaya/
FLAVORS= motif gtk
FLAVOR?= motif
2007-04-28 19:45:41 +00:00
WANTLIB= ICE SM X11 Xext Xp Xt c expat m z
2004-12-11 13:29:20 +00:00
2006-11-13 12:51:14 +00:00
USE_X11= Yes
.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
2004-12-11 13:29:20 +00:00
WANTLIB+= Xi gdk gif glib gmodule gtk iconv intl jpeg png tiff
.elif ${FLAVOR:L} == "motif"
2000-04-11 20:08:46 +00:00
USE_MOTIF= any
2006-08-04 00:10:42 +00:00
LIB_DEPENDS+= jpeg.>=62::graphics/jpeg \
png.>=2::graphics/png
CONFIGURE_ARGS+= --without-gtk \
--with-motif-includes=${LOCALBASE}/include \
--with-motif-libraries=${LOCALBASE}/lib
.else
ERRORS+= Fatal: Conflicting or missing flavor: '${FLAVOR}'
.endif
2000-04-11 20:08:46 +00:00
WRKSRC= ${WRKDIR}/Amaya
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
AUTOCONF_VERSION= 2.13
CONFIGURE_STYLE= autoconf dest
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"
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
post-configure:
@cd ${WRKBUILD} && cp Options.orig Options
2002-10-29 01:30:41 +00:00
NO_REGRESS= Yes
2000-04-11 20:08:46 +00:00
pre-install:
${STRIP} ${WRKBUILD}/bin/amaya
${STRIP} ${WRKBUILD}/bin/print
post-install:
cd ${PREFIX}/bin; rm amaya; \
ln -s ${TRUEPREFIX}/Amaya/applis/bin/amaya
2000-04-11 20:08:46 +00:00
.include <bsd.port.mk>