freebsd-ports/graphics/py-graphviz/files/Makefile
Pav Lucistnik 3d17564db2 - Remove files/setup.py
- Add files/Makefile
- Rather than build from port's own download of graphviz, depend on the
  graphviz port and use its shared objects. (Fixes fetch problem)

PR:		ports/78069
Submitted by:	Sam Lawrance <boris@brooknet.com.au>
2005-02-26 13:23:05 +00:00

12 lines
425 B
Makefile

# $FreeBSD$
all: _graphviz.so
_graphviz.so: gv_wrap.o
${CC} -shared ${LOCALBASE}/lib/graphviz/libagraph.so ${LOCALBASE}/lib/graphviz/libcdt.so gv_wrap.o -o _graphviz.so
gv_wrap.o: gv_wrap.c
${CC} -fno-strict-aliasing -DNDEBUG -O -pipe -DTHREAD_STACK_SIZE=0x20000 -fPIC -Dulong=u_long -DVERSION="py-agraph 1.0" -I${GRAPHVIZ_INCLUDEDIR} -I${PYTHON_INCLUDEDIR} ${CFLAGS} -c gv_wrap.c
gv_wrap.c:
${SWIG_CMD} -python gv.i