Cleaned up the package. The only functional change is that the man/man3
directory is created, which means that all files are properly installed.
This commit is contained in:
parent
bee076e3d9
commit
3475ef7b4c
1 changed files with 11 additions and 21 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue