summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorobache <obache>2011-02-03 12:21:02 +0000
committerobache <obache>2011-02-03 12:21:02 +0000
commit87404dcac72ee40374ff15f8cd2ec8648268f504 (patch)
treea381e5d0414e1807013e9c57d613f592551eae6d /math
parent2f012112e0a14f8af7d641e1b7d214492234aa7b (diff)
downloadpkgsrc-87404dcac72ee40374ff15f8cd2ec8648268f504.tar.gz
Some clean up.
* No need automake to build. * clean up subst patterns, not to break shell script. * more 32bit and 64bit patterns * pass down prefered environments to build. * DL_LIBS came from dlopen.buildlinnk3.mk, need to buildlink.
Diffstat (limited to 'math')
-rw-r--r--math/lp_solve/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/math/lp_solve/Makefile b/math/lp_solve/Makefile
index a7bd6c360ae..f19e281af56 100644
--- a/math/lp_solve/Makefile
+++ b/math/lp_solve/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/02/03 11:30:54 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2011/02/03 12:21:02 obache Exp $
#
DISTNAME= lp_solve_5.5.2.0_source
@@ -13,33 +13,33 @@ COMMENT= Mixed Integer Linear Programming (MILP) solver
PKG_DESTDIR_SUPPORT= user-destdir
-USE_TOOLS+= automake
-
WRKSRC= ${WRKDIR}/lp_solve_5.5
SUBST_CLASSES+= dl
SUBST_STAGE.dl= pre-build
-SUBST_SED.dl+= -e "s,-ldl,${DL_LIBS},g"
-SUBST_SED.dl+= -e "s,^opts=.*,opts=${CFLAGS},g"
-SUBST_SED.dl+= -e "s,-fpic,-fPIC,g"
+SUBST_SED.dl+= -e s,-ldl,${DL_LIBS:Q},g
+SUBST_SED.dl+= -e s,^opts=.*,opts=\'${CFLAGS:Q}\',g
+SUBST_SED.dl+= -e s,-fpic,-fPIC,g
SUBST_FILES.dl+= lp_solve/ccc
SUBST_FILES.dl+= lpsolve55/ccc
SUBST_FILES.dl+= demo/ccc
.include "../../mk/bsd.fast.prefs.mk"
-.if ${MACHINE_ARCH} == "i386"
-LPSOLVE_ARCH= ux32
-.else
+.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "x86_64"
LPSOLVE_ARCH= ux64
+.else
+LPSOLVE_ARCH= ux32
.endif
INSTALLATION_DIRS= bin include/lpsolve lib
do-build:
- cd ${WRKSRC}/lp_solve && ${SH} ccc
- cd ${WRKSRC}/lpsolve55 && ${SH} ccc
- cd ${WRKSRC}/demo && ${SH} ccc
+.for dir in lp_solve lpsolve55 demo
+ ${RUN}${_ULIMIT_CMD} \
+ cd ${WRKSRC}/${dir} && \
+ ${SETENV} ${MAKE_ENV} ${SH} ccc
+.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lp_solve/bin/${LPSOLVE_ARCH}/lp_solve \
@@ -53,4 +53,5 @@ do-install:
.endfor
${LN} -sf liblpsolve55.so ${DESTDIR}${PREFIX}/lib/liblpsolve55.so.1
+.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"