- add support for scons module
"put it in" steven@, ok simon@
This commit is contained in:
parent
08555ee364
commit
58c87013ef
29
devel/scons/scons.port.mk
Normal file
29
devel/scons/scons.port.mk
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: scons.port.mk,v 1.1 2007/12/08 20:11:02 ajacoutot Exp $
|
||||
|
||||
BUILD_DEPENDS+= :scons-*:devel/scons
|
||||
|
||||
MODSCONS_BIN= ${LOCALBASE}/bin/scons
|
||||
|
||||
MODSCONS_ENV?= CC="${CC}" \
|
||||
CXX="${CXX}" \
|
||||
CCFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LINKFLAGS="${LDFLAGS}" \
|
||||
CPPPATH="${LOCALBASE}/include ${X11BASE}/include" \
|
||||
LIBPATH="${LOCALBASE}/lib ${X11BASE}/lib" \
|
||||
PREFIX="${PREFIX}"
|
||||
|
||||
MODSCONS_FLAGS?=
|
||||
ALL_TARGET?=
|
||||
|
||||
.if !target(do-build)
|
||||
do-build:
|
||||
@${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKBUILD} \
|
||||
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
|
||||
.endif
|
||||
|
||||
.if !target(do-install)
|
||||
do-install:
|
||||
@${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKBUILD} \
|
||||
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${INSTALL_TARGET}
|
||||
.endif
|
Loading…
Reference in New Issue
Block a user