2005-09-26 16:19:44 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2005/09/26 14:19:44 wiz Exp $
|
2003-05-05 12:57:05 +02:00
|
|
|
#
|
|
|
|
|
2004-02-17 13:45:56 +01:00
|
|
|
VERS= 0.51b3
|
2004-10-05 15:06:23 +02:00
|
|
|
DISTNAME= elfsh-${VERS}-portable
|
2003-05-05 12:57:05 +02:00
|
|
|
PKGNAME= elfsh-${VERS}
|
2005-09-26 16:19:44 +02:00
|
|
|
PKGREVISION= 2
|
2003-05-05 12:57:05 +02:00
|
|
|
CATEGORIES= devel
|
2004-10-21 19:42:45 +02:00
|
|
|
MASTER_SITES= http://elfsh.segfault.net/files/
|
2003-05-05 12:57:05 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2004-10-21 19:42:45 +02:00
|
|
|
HOMEPAGE= http://elfsh.segfault.net/
|
2003-05-05 12:57:05 +02:00
|
|
|
COMMENT= ELF format exploration shell
|
|
|
|
|
2004-03-30 08:50:16 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
2003-05-05 12:57:05 +02:00
|
|
|
|
2004-02-17 13:45:56 +01:00
|
|
|
USE_GNU_READLINE= yes
|
|
|
|
|
|
|
|
SUBST_STAGE.elfsh= post-patch
|
|
|
|
SUBST_FILES.elfsh= vm/include/elfsh.h
|
|
|
|
SUBST_SED.elfsh= -e s,@@SH@@,${SH}, -e s,@@PREFIX@@,${PREFIX},
|
|
|
|
SUBST_CLASSES+= elfsh
|
2003-05-12 23:27:10 +02:00
|
|
|
|
2003-05-05 12:57:05 +02:00
|
|
|
# XXX This package should be converted to use libtool
|
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin include lib
|
|
|
|
|
2003-05-05 12:57:05 +02:00
|
|
|
do-install:
|
2004-02-17 13:45:56 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/vm/elfsh ${PREFIX}/bin/elfsh
|
2003-05-05 12:57:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libelfsh/libelfsh.a ${PREFIX}/lib/libelfsh.a
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libelfsh/libelfsh.so ${PREFIX}/lib/libelfsh.so
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libelfsh/include/libelfsh.h ${PREFIX}/include/libelfsh.h
|
2004-02-17 13:45:56 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/elfsh
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/modremap.so ${PREFIX}/lib/elfsh
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/modules/modtest.so ${PREFIX}/lib/elfsh
|
2003-05-05 12:57:05 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/elfsh
|
2004-02-17 13:45:56 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/elfsh-ref.txt ${PREFIX}/share/doc/elfsh/elfsh-ref.txt
|
2003-05-05 12:57:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/libelfsh-ref.txt ${PREFIX}/share/doc/elfsh/libelfsh-ref.txt
|
|
|
|
|
2004-02-17 13:45:56 +01:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
2003-05-05 12:57:05 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|