2002-02-13 13:43:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2002/02/13 12:43:56 drochner Exp $
|
1999-10-01 13:23:14 +02:00
|
|
|
|
2002-02-05 23:23:31 +01:00
|
|
|
DISTNAME= dx-4.1.3
|
1999-10-01 13:23:14 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.research.ibm.com/dx/srcDownload/srcArchive/
|
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.research.ibm.com/dx/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= Open Visualization Data Explorer
|
1999-10-01 13:23:14 +02:00
|
|
|
|
2001-09-12 23:09:04 +02:00
|
|
|
USE_BUILDLINK_ONLY= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --without-javadx
|
2002-02-13 13:43:56 +01:00
|
|
|
CONFIGURE_ENV+= LEX="flex -l"
|
1999-10-01 13:23:14 +02:00
|
|
|
|
2001-09-12 23:09:04 +02:00
|
|
|
# Ensure we export symbols in the linked shared object.
|
|
|
|
LDFLAGS+= -Wl,--export-dynamic
|
1999-10-01 13:23:14 +02:00
|
|
|
|
2001-09-12 23:09:04 +02:00
|
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/freetype # freetype.h
|
2001-05-08 21:48:45 +02:00
|
|
|
|
2001-09-12 23:09:04 +02:00
|
|
|
# Override ARCH to avoid picking up a bad ${ARCH} during the build.
|
|
|
|
MAKE_ENV+= ARCH=""
|
|
|
|
CONFIGURE_ENV+= ARCH=""
|
|
|
|
|
|
|
|
# Remove "-I/usr/include -I/usr/local/include" from the INCLUDES, and
|
|
|
|
# "-L/usr/X11R6/lib -L/usr/local/lib" from the *_LDADD passed to
|
|
|
|
# the compiler, as this defeats buildlink.
|
|
|
|
#
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
files=`${FIND} . -name "Makefile.in" -print`; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
${SED} -e "/^INCLUDES.*=.*/s|[ ]*-I/usr/include[ ]*-I/usr/local/include||" \
|
|
|
|
-e "/^[^ ]*LDADD.*=.*/s|[ ]*-L/usr/X11R6/lib[ ]*-L/usr/local/lib||" \
|
|
|
|
$${file} > $${file}.fixed; \
|
|
|
|
${MV} -f $${file}.fixed $${file}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../devel/netcdf/buildlink.mk"
|
|
|
|
.include "../../graphics/Mesa/buildlink.mk"
|
|
|
|
.include "../../graphics/freetype-lib/buildlink.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink.mk"
|
|
|
|
.include "../../graphics/png/buildlink.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink.mk"
|
|
|
|
.include "../../mk/motif.buildlink.mk"
|
2001-10-25 00:10:43 +02:00
|
|
|
.include "../../mk/x11.buildlink.mk"
|
1999-10-01 13:23:14 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|