2007-11-18 11:39:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2007/11/18 10:39:56 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
|
2007-11-18 11:39:56 +01:00
|
|
|
MASTER_SITES= http://elfsh.asgardlabs.org/files/
|
2003-05-05 12:57:05 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
|
2007-05-25 00:56:29 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
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
|
|
|
|
|
2006-06-18 02:56:11 +02:00
|
|
|
SUBST_CLASSES+= elfsh
|
2004-02-17 13:45:56 +01:00
|
|
|
SUBST_STAGE.elfsh= post-patch
|
2006-06-18 02:56:11 +02:00
|
|
|
SUBST_MESSAGE.elfsh= Filling placeholders.
|
2004-02-17 13:45:56 +01:00
|
|
|
SUBST_FILES.elfsh= vm/include/elfsh.h
|
2006-06-18 02:56:11 +02:00
|
|
|
SUBST_SED.elfsh= -e s,@@SH@@,${SH},
|
|
|
|
SUBST_SED.elfsh+= -e s,@@PREFIX@@,${PREFIX},
|
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:
|
2007-05-25 00:56:29 +02:00
|
|
|
${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
|
2003-05-05 12:57:05 +02:00
|
|
|
|
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"
|