summaryrefslogtreecommitdiff
path: root/editors/pico/Makefile
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-02-15 18:04:02 +0000
committertv <tv@pkgsrc.org>2005-02-15 18:04:02 +0000
commit17d3ac45dec03bdc840768498ba3d7bc5d8034eb (patch)
tree12902e7649e397591017472f19c8069f6582ff7a /editors/pico/Makefile
parent75d649f60691d69333af7d9d19269127450863dc (diff)
downloadpkgsrc-17d3ac45dec03bdc840768498ba3d7bc5d8034eb.tar.gz
Make build on Interix, which is very close to Solaris and SVR4, but has
-lcurses instead of -ltermlib, and can't use poll(2).
Diffstat (limited to 'editors/pico/Makefile')
-rw-r--r--editors/pico/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/editors/pico/Makefile b/editors/pico/Makefile
index adbe3ce87f9..b00c1e6784b 100644
--- a/editors/pico/Makefile
+++ b/editors/pico/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2005/01/31 19:09:16 tv Exp $
+# $NetBSD: Makefile,v 1.61 2005/02/15 18:04:02 tv Exp $
#
# NOTE:
# When updating, it is necessary to change the shlib version, located in
@@ -35,6 +35,8 @@ BUILDNAME= sg6
. else
BUILDNAME= sgi
. endif
+.elif ${OPSYS} == "Interix"
+BUILDNAME= sfu
.elif ${OPSYS} == "Linux"
BUILDNAME= lnx
.elif ${OPSYS} == "SunOS"
@@ -45,6 +47,16 @@ BUILDNAME= neb
MAKE_ENV+= _STRIPFLAG_INSTALL= # debug...
+pre-patch:
+.if ${OPSYS} == "Interix"
+ ${CP} -f \
+ ${WRKSRC}/pico/osdep/os-sol.h ${WRKSRC}/pico/osdep/os-sfu.h
+ ${SED} -e 's,read.pol,read.sel,' \
+ ${WRKSRC}/pico/osdep/os-sv4.ic >${WRKSRC}/pico/osdep/os-sfu.ic
+ ${SED} -e 's,-ltermlib,-lcurses,g;s,sv4,sfu,g' \
+ ${WRKSRC}/pico/makefile.sv4 >${WRKSRC}/pico/makefile.sfu
+.endif
+
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build ${BUILDNAME} \
CC="${LIBTOOL} ${CC}" \