diff options
-rw-r--r-- | databases/py-MySQL/Makefile | 17 | ||||
-rw-r--r-- | databases/py-MySQL/files/Setup | 2 |
2 files changed, 11 insertions, 8 deletions
diff --git a/databases/py-MySQL/Makefile b/databases/py-MySQL/Makefile index 14bff0feb40e..bbb83917508c 100644 --- a/databases/py-MySQL/Makefile +++ b/databases/py-MySQL/Makefile @@ -17,18 +17,19 @@ BUILD_DEPENDS= python:${PORTSDIR}/lang/python LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client RUN_DEPENDS= python:${PORTSDIR}/lang/python -pre-build: - ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile +ALL_TARGET= MySQLmodule.so + +pre-configure: + ${CP} ${FILESDIR}/Setup ${WRKSRC}/Setup + ${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/ + +do-configure: + cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot -do-install: - ${INSTALL_DATA} ${WRKSRC}/MySQLmodule.so ${PREFIX}/lib/python1.5/site-packages .if !defined(NOPORTDOCS) +post-install: ${MKDIR} ${PREFIX}/share/doc/py-MySQL ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/py-MySQL -.endif - -post-install: -.if !defined(NOPORTDOCS) ${ECHO} "share/doc/py-MySQL/README" >> ${TMPPLIST} ${ECHO} "@dirrm share/doc/py-MySQL" >> ${TMPPLIST} .endif diff --git a/databases/py-MySQL/files/Setup b/databases/py-MySQL/files/Setup new file mode 100644 index 000000000000..bc8973ba58f9 --- /dev/null +++ b/databases/py-MySQL/files/Setup @@ -0,0 +1,2 @@ +*shared* +MySQL MySQLmodule.c -I${LOCALBASE}/include/mysql -L${LOCALBASE}/lib/mysql -lmysqlclient |