diff options
author | nectar <nectar@FreeBSD.org> | 1998-11-14 07:16:25 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 1998-11-14 07:16:25 +0800 |
commit | 29390b8b96f237f9ee314fed242da2397fe7b087 (patch) | |
tree | e5234125d28736d0dad459a25028ba9b18a4a928 /databases/py-PyGreSQL | |
parent | 9a2e2cc4e66cb16d15eea6329425eb212e26c340 (diff) | |
download | freebsd-ports-graphics-29390b8b96f237f9ee314fed242da2397fe7b087.tar.gz freebsd-ports-graphics-29390b8b96f237f9ee314fed242da2397fe7b087.tar.zst freebsd-ports-graphics-29390b8b96f237f9ee314fed242da2397fe7b087.zip |
Update for ELF.
Diffstat (limited to 'databases/py-PyGreSQL')
-rw-r--r-- | databases/py-PyGreSQL/files/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/databases/py-PyGreSQL/files/Makefile b/databases/py-PyGreSQL/files/Makefile new file mode 100644 index 00000000000..291913ae6ac --- /dev/null +++ b/databases/py-PyGreSQL/files/Makefile @@ -0,0 +1,26 @@ +.SUFFIXES: .py .pyc + +all: pgmodule.so pgext.pyc pgtools.pyc + +install: + @${MKDIR} ${PREFIX}/lib/site-python + ${BSD_INSTALL_PROGRAM} pgmodule.so ${PREFIX}/lib/site-python + ${BSD_INSTALL_DATA} pgext.py pgext.pyc pgtools.py pgtools.pyc \ + ${PREFIX}/lib/site-python + +clean: + rm -f *.so *.o *.pyc pgtools.py + +pgtools.py: tutorial/pgtools.py + ${LN} -fs ${.ALLSRC} ${.TARGET} + +pgmodule.so: pgmodule.o + ${LD} -Bshareable -lc_r -L${PREFIX}/lib/python1.5/config -lpython1.5 \ + -L${PREFIX}/pgsql/lib -lpq ${.ALLSRC} -o ${.TARGET} + +pgmodule.o: pgmodule.c + ${CC} -c -I${PREFIX}/include/python1.5 -I${PREFIX}/pgsql/include \ + ${.ALLSRC} + +.py.pyc: + ${SETENV} PYTHONPATH=${.CURDIR} ${PYTHON} -c 'import ${.IMPSRC:.py=}' |