blob: 0050d52f677f64af65f4544825ad053bfbd0960d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.11 2001/10/24 22:11:00 jlam Exp $
DISTNAME= dx-4.1.0
CATEGORIES= graphics
MASTER_SITES= http://www.research.ibm.com/dx/srcDownload/srcArchive/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.research.ibm.com/dx/
COMMENT= Open Visualization Data Explorer
USE_BUILDLINK_ONLY= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-javadx
# Ensure we export symbols in the linked shared object.
LDFLAGS+= -Wl,--export-dynamic
CPPFLAGS+= -I${BUILDLINK_DIR}/include/freetype # freetype.h
# 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"
.include "../../mk/x11.buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|