aboutsummaryrefslogtreecommitdiffstats
path: root/devel/elfio
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-07-22 05:12:37 +0800
committerrafan <rafan@FreeBSD.org>2006-07-22 05:12:37 +0800
commite9eaf3904870f153494a37adf71c72541f9719b2 (patch)
treebe2154ebc2e159e19a12b9819a12bea0cfd7e8c6 /devel/elfio
parent254a3075675aabbd33a3cf39a2a72565c06da4c8 (diff)
downloadfreebsd-ports-gnome-e9eaf3904870f153494a37adf71c72541f9719b2.tar.gz
freebsd-ports-gnome-e9eaf3904870f153494a37adf71c72541f9719b2.tar.zst
freebsd-ports-gnome-e9eaf3904870f153494a37adf71c72541f9719b2.zip
- Install sample programs
- Fix PORTNAME to match dirname - Use PORTDOCS, USE_GNOME macro - Pass maintainership to submitter PR: ports/100685 Submitted by: Stanislav Sedov <ssedov at mbsd.msk.ru>
Diffstat (limited to 'devel/elfio')
-rw-r--r--devel/elfio/Makefile29
-rw-r--r--devel/elfio/pkg-plist15
2 files changed, 31 insertions, 13 deletions
diff --git a/devel/elfio/Makefile b/devel/elfio/Makefile
index 5a24890dd965..c7c58a74d785 100644
--- a/devel/elfio/Makefile
+++ b/devel/elfio/Makefile
@@ -6,17 +6,31 @@
# $FreeBSD$
#
-PORTNAME= ELFIO
+PORTNAME= elfio
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME:L}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME:U}-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ssedov@mbsd.msk.ru
COMMENT= C++ library for reading and generating files in the ELF binary format
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_GNOME= gnometarget
+
+OPTIONS= EXAMPLES "Install sample programms" on
+
+PORTDOCS= *
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_EXAMPLES)
+PLIST_SUB+= EXAMPLES=""
+.else
+PLIST_SUB+= EXAMPLES="@comment "
+.endif
post-install:
.if !defined(NOPORTDOCS)
@@ -28,5 +42,10 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.endif
+.if !defined(WITHOUT_EXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${FIND} ${WRKSRC}/Examples/ -name "*.cpp" -exec ${INSTALL_DATA} {} \
+ ${EXAMPLESDIR}/ \;
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/elfio/pkg-plist b/devel/elfio/pkg-plist
index 2a295561602d..27a93871562f 100644
--- a/devel/elfio/pkg-plist
+++ b/devel/elfio/pkg-plist
@@ -1,14 +1,13 @@
-@comment $FreeBSD$
bin/ELFDump
include/ELFI.h
include/ELFIO.h
include/ELFO.h
include/ELFTypes.h
lib/libELFIO.a
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/elf11g.zip
-%%PORTDOCS%%%%DOCSDIR%%/tutorial.docbook
-%%PORTDOCS%%%%DOCSDIR%%/tutorial.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%EXAMPLES%%%%EXAMPLESDIR%%/ELFDump.cpp
+%%EXAMPLES%%%%EXAMPLESDIR%%/RelocationTable.cpp
+%%EXAMPLES%%%%EXAMPLESDIR%%/Write.cpp
+%%EXAMPLES%%%%EXAMPLESDIR%%/WriteObj.cpp
+%%EXAMPLES%%%%EXAMPLESDIR%%/WriteObj2.cpp
+%%EXAMPLES%%%%EXAMPLESDIR%%/tutorial.cpp
+%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%