summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig>2007-12-01 12:49:05 +0000
committerrillig <rillig>2007-12-01 12:49:05 +0000
commitebb15661115e0e54c0e9cad88356038d63a75b6f (patch)
treeb4220edcd8c583c1c71ff4c80fe16fc4d85037ed /lang
parent5648491343b6b9b14c570562ad56266bcd5d20fd (diff)
downloadpkgsrc-ebb15661115e0e54c0e9cad88356038d63a75b6f.tar.gz
Cleaned up the package. The only functional change is that the man/man3
directory is created, which means that all files are properly installed.
Diffstat (limited to 'lang')
-rw-r--r--lang/sr/Makefile32
1 files changed, 11 insertions, 21 deletions
diff --git a/lang/sr/Makefile b/lang/sr/Makefile
index aa6369ca43e..787d81893ff 100644
--- a/lang/sr/Makefile
+++ b/lang/sr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2007/03/25 10:04:28 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2007/12/01 12:49:05 rillig Exp $
#
DISTNAME= sr233
@@ -13,30 +13,20 @@ HOMEPAGE= http://www.cs.arizona.edu/sr/
COMMENT= The SR language compiler and run time system
WRKSRC= ${WRKDIR}
-
-ONLY_FOR_PLATFORM= NetBSD-[2-9]*-*
-
-
TEST_TARGET= verify
+INSTALLATION_DIRS_FROM_PLIST=yes
-pre-configure:
- ${MV} ${WRKSRC}/Configuration \
- ${WRKSRC}/Configuration.template
- ${SED} -e 's,_LOCALBASE_,${LOCALBASE},g' \
- -e 's,_WRKSRC_,${WRKSRC},g' \
- -e 's,_XINC_,${X11BASE}/include,g' \
- -e 's,_XLIB_,${X11BASE}/lib,g' \
- ${WRKSRC}/Configuration.template \
- > ${WRKSRC}/Configuration
-
-pre-install:
- -${MKDIR} ${PREFIX}/lib/sr
+SUBST_CLASSES+= sr
+SUBST_STAGE.sr= pre-configure
+SUBST_FILES.sr= Configuration
+SUBST_SED.sr= -e 's,_LOCALBASE_,${LOCALBASE},g'
+SUBST_SED.sr+= -e 's,_WRKSRC_,${WRKSRC},g'
+SUBST_SED.sr+= -e 's,_XINC_,${X11BASE}/include,g'
+SUBST_SED.sr+= -e 's,_XLIB_,${X11BASE}/lib,g'
post-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/csw/cstest ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sr
- cd ${WRKSRC}/ps && \
- ${INSTALL_DATA} *.ps ${PREFIX}/share/doc/sr
+ ${INSTALL_PROGRAM} ${WRKSRC}/csw/cstest ${PREFIX}/bin
+ cd ${WRKSRC}/ps && ${INSTALL_DATA} *.ps ${PREFIX}/share/doc/sr
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"