diff options
author | garga <garga@FreeBSD.org> | 2006-04-01 19:17:28 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-04-01 19:17:28 +0800 |
commit | 2bd56dfadfd50e16e5908c5b6826f65300c004a5 (patch) | |
tree | 4b6ad672e9dca26f93513d1aa747b8aa1d877c2a /devel | |
parent | 7795fb824ef28b7b3773ae51c8c5c0fef3598b33 (diff) | |
download | freebsd-ports-gnome-2bd56dfadfd50e16e5908c5b6826f65300c004a5.tar.gz freebsd-ports-gnome-2bd56dfadfd50e16e5908c5b6826f65300c004a5.tar.zst freebsd-ports-gnome-2bd56dfadfd50e16e5908c5b6826f65300c004a5.zip |
libdasm is a C-library that tries to provide simple and convenient
way to disassemble Intel x86 raw opcode bytes (machine code). It
can parse and print out opcodes in AT&T and Intel syntax.
WWW: http://www.nologin.net/main.pl?action=codeView&codeId=49&
PR: ports/95048
Submitted by: Antoine Brodin <antoine.brodin@laposte.net>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/libdasm/Makefile | 50 | ||||
-rw-r--r-- | devel/libdasm/distinfo | 3 | ||||
-rw-r--r-- | devel/libdasm/pkg-descr | 5 | ||||
-rw-r--r-- | devel/libdasm/pkg-plist | 11 |
5 files changed, 70 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index a93a69ab2460..6c312e1cacde 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -462,6 +462,7 @@ SUBDIR += libcoro SUBDIR += libcwd SUBDIR += libdaemon + SUBDIR += libdasm SUBDIR += libdict SUBDIR += libdlmalloc SUBDIR += libdnsres diff --git a/devel/libdasm/Makefile b/devel/libdasm/Makefile new file mode 100644 index 000000000000..e6c8a9bb3a0c --- /dev/null +++ b/devel/libdasm/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: libdasm +# Date created: 28 March 2006 +# Whom: Antoine Brodin <antoine.brodin@laposte.net> +# +# $FreeBSD$ +# + +PORTNAME= libdasm +PORTVERSION= 1.4 +CATEGORIES= devel +MASTER_SITES= http://www.klake.org/~jt/misc/ + +MAINTAINER= antoine.brodin@laposte.net +COMMENT= A simple x86 disassembly library + +INSTALLS_SHLIB= yes + +.if !defined(WITHOUT_EXAMPLES) +PLIST_SUB+= EXAMPLES="" +.else +PLIST_SUB+= EXAMPLES="@comment " +.endif + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" +CFLAGS+= -fPIC -DPIC +.endif + +post-patch: + @${REINPLACE_CMD} -E 's,^(CC|CFLAGS|PREFIX).*=,\1 ?=,; \ + s,libdasm.so.1.0,libdasm.so.1,g; \ + s,cp ,${INSTALL_DATA} ,g' \ + ${WRKSRC}/Makefile \ + ${WRKSRC}/examples/Makefile + +post-install: +.if !defined(WITHOUT_EXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/README.txt ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/das.c ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/simple.c ${EXAMPLESDIR} +.endif +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/HISTORY.txt ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/devel/libdasm/distinfo b/devel/libdasm/distinfo new file mode 100644 index 000000000000..7554bd4cb7d9 --- /dev/null +++ b/devel/libdasm/distinfo @@ -0,0 +1,3 @@ +MD5 (libdasm-1.4.tar.gz) = bc13927d718edf8db7e5e3a7631b03dc +SHA256 (libdasm-1.4.tar.gz) = 182603e7581e34c013c82811b0dcd4f7fc49f0e493d5e7ea1935a42408565d1f +SIZE (libdasm-1.4.tar.gz) = 69303 diff --git a/devel/libdasm/pkg-descr b/devel/libdasm/pkg-descr new file mode 100644 index 000000000000..327325d1eeae --- /dev/null +++ b/devel/libdasm/pkg-descr @@ -0,0 +1,5 @@ +libdasm is a C-library that tries to provide simple and convenient +way to disassemble Intel x86 raw opcode bytes (machine code). It +can parse and print out opcodes in AT&T and Intel syntax. + +WWW: http://www.nologin.net/main.pl?action=codeView&codeId=49& diff --git a/devel/libdasm/pkg-plist b/devel/libdasm/pkg-plist new file mode 100644 index 000000000000..27c9455fd190 --- /dev/null +++ b/devel/libdasm/pkg-plist @@ -0,0 +1,11 @@ +include/libdasm.h +lib/libdasm.a +lib/libdasm.so +lib/libdasm.so.1 +%%EXAMPLES%%%%EXAMPLESDIR%%/README.txt +%%EXAMPLES%%%%EXAMPLESDIR%%/das.c +%%EXAMPLES%%%%EXAMPLESDIR%%/simple.c +%%EXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%%%DOCSDIR%%/HISTORY.txt +%%PORTDOCS%%%%DOCSDIR%%/README.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%% |