freebsd-ports/devel/py-distorm/files/patch-Makefile
Li-Wen Hsu 56d1f65c8b - Update to 1.7.29
- Bundle PE parser diSlib64.py
- Move Python library into ${PYTHON_SITELIBDIR}
- Pass maintainership to submitter

PR:		ports/123627
Submitted by:	bf <bf2006a AT yahoo.com>
Approved by:	Lutz Boehne <lboehne AT damogran.de> (maintainer)
2008-06-15 04:40:32 +00:00

21 lines
957 B
Text

--- Makefile.orig 2008-05-12 02:39:48.081089220 -0400
+++ Makefile 2008-05-13 03:58:39.453527116 -0400
@@ -5,8 +5,7 @@
TARGET = libdistorm64.so
COBJS = ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o
PYOBJS = ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/pydistorm.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/decoder.o
-CC = gcc
-CFLAGS = -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL
+CFLAGS += -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL -I${LOCALBASE}/include
all: clib py
@@ -18,7 +17,7 @@
ar rs ../../distorm64.a ${COBJS}
py: ${PYOBJS}
- ${CC} ${CFLAGS} ${VERSION} ${PYOBJS} -fPIC -shared -o ${TARGET}
+ ${CC} ${CFLAGS} ${VERSION} ${PYOBJS} -fPIC -shared -o distorm.so
install: libdistorm64.so
install -s ${TARGET} /usr/local/lib