46 lines
1.6 KiB
Makefile
46 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2007/11/18 10:39:56 wiz Exp $
|
|
#
|
|
|
|
VERS= 0.51b3
|
|
DISTNAME= elfsh-${VERS}-portable
|
|
PKGNAME= elfsh-${VERS}
|
|
PKGREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://elfsh.asgardlabs.org/files/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://elfsh.segfault.net/
|
|
COMMENT= ELF format exploration shell
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
USE_GNU_READLINE= yes
|
|
|
|
SUBST_CLASSES+= elfsh
|
|
SUBST_STAGE.elfsh= post-patch
|
|
SUBST_MESSAGE.elfsh= Filling placeholders.
|
|
SUBST_FILES.elfsh= vm/include/elfsh.h
|
|
SUBST_SED.elfsh= -e s,@@SH@@,${SH},
|
|
SUBST_SED.elfsh+= -e s,@@PREFIX@@,${PREFIX},
|
|
|
|
# XXX This package should be converted to use libtool
|
|
|
|
INSTALLATION_DIRS= bin include lib
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vm/elfsh ${DESTDIR:Q}${PREFIX:Q}/bin/elfsh
|
|
${INSTALL_DATA} ${WRKSRC}/libelfsh/libelfsh.a ${DESTDIR:Q}${PREFIX:Q}/lib/libelfsh.a
|
|
${INSTALL_DATA} ${WRKSRC}/libelfsh/libelfsh.so ${DESTDIR:Q}${PREFIX:Q}/lib/libelfsh.so
|
|
${INSTALL_DATA} ${WRKSRC}/libelfsh/include/libelfsh.h ${DESTDIR:Q}${PREFIX:Q}/include/libelfsh.h
|
|
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/lib/elfsh
|
|
${INSTALL_DATA} ${WRKSRC}/modules/modremap.so ${DESTDIR:Q}${PREFIX:Q}/lib/elfsh
|
|
${INSTALL_DATA} ${WRKSRC}/modules/modtest.so ${DESTDIR:Q}${PREFIX:Q}/lib/elfsh
|
|
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/share/doc/elfsh
|
|
${INSTALL_DATA} ${WRKSRC}/doc/elfsh-ref.txt ${DESTDIR:Q}${PREFIX:Q}/share/doc/elfsh/elfsh-ref.txt
|
|
${INSTALL_DATA} ${WRKSRC}/doc/libelfsh-ref.txt ${DESTDIR:Q}${PREFIX:Q}/share/doc/elfsh/libelfsh-ref.txt
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|