Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This port has the Python bits of net/scamper. PR: 276395
- Loading branch information
1 parent
849771c
commit 499be1d
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
PORTREVISION= 0 | ||
CATEGORIES= net python | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= mjl@luckie.org.nz | ||
COMMENT= Python bindings for scamper | ||
|
||
LICENSE= GPLv2 | ||
LICENSE_FILE= ${WRKSRC}/COPYING | ||
|
||
LIB_DEPENDS= libscamperfile.so:${MASTER_PORT} | ||
|
||
USES= python localbase:ldflags | ||
USE_PYTHON= flavors | ||
CONFIGURE_ARGS= --with-python | ||
|
||
PORTSCOUT= ignore:1 | ||
|
||
SLAVE_PORT= yes | ||
MASTERDIR= ${.CURDIR}/../scamper | ||
|
||
PLIST= ${.CURDIR}/pkg-plist | ||
BUILD_WRKSRC= ${WRKSRC}/lib/python | ||
INSTALL_WRKSRC= ${BUILD_WRKSRC} | ||
|
||
PLIST_FILES= ${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/scamper.a \ | ||
${PYTHONPREFIX_SITELIBDIR:S,^${PREFIX}/,,}/scamper.so | ||
|
||
post-patch: | ||
@${REINPLACE_CMD} \ | ||
-e 's/$$(scamper_la_DEPENDENCIES)//' \ | ||
-e 's,../../scamper/libscamperfile.la,-lscamperfile,' \ | ||
-e 's,../libscamperctrl/libscamperctrl.la,-lscamperctrl,' \ | ||
${BUILD_WRKSRC}/Makefile.in | ||
|
||
.include "${MASTERDIR}/Makefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters