diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-06-18 01:20:43 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-06-18 01:20:43 +0800 |
commit | 2fafc4082e45ff6b00715710aa64252d4edc126b (patch) | |
tree | 821fdb5d8b873bd8a01371cbb2de10bd712a66e4 /devel/libgii | |
parent | 78167518119e9c4ef00aabd565953aa96584836b (diff) | |
download | freebsd-ports-graphics-2fafc4082e45ff6b00715710aa64252d4edc126b.tar.gz freebsd-ports-graphics-2fafc4082e45ff6b00715710aa64252d4edc126b.tar.zst freebsd-ports-graphics-2fafc4082e45ff6b00715710aa64252d4edc126b.zip |
Sort pkg-plist, add etc/ files management.
Diffstat (limited to 'devel/libgii')
-rw-r--r-- | devel/libgii/Makefile | 3 | ||||
-rw-r--r-- | devel/libgii/pkg-plist | 28 |
2 files changed, 20 insertions, 11 deletions
diff --git a/devel/libgii/Makefile b/devel/libgii/Makefile index 56cd58b23c6..9ca8d5f04f7 100644 --- a/devel/libgii/Makefile +++ b/devel/libgii/Makefile @@ -42,6 +42,9 @@ post-configure: @${PERL} -p -i.bak -e 's/deplibs -lc/deplibs/;' ${WRKSRC}/libtool post-install: + @${CP} ${WRKSRC}/libgii.conf ${PREFIX}/etc/ggi/libgii.conf.dist + @${CP} ${WRKSRC}/filter/mouse/mouse ${PREFIX}/etc/ggi/filter/mouse.dist + @${CP} ${WRKSRC}/filter/keytrans/keytrans ${PREFIX}/etc/ggi/filter/keytrans.dist @${MAKE} install-examples .if !defined(NOPORTDOCS) @${MAKE} install-documents diff --git a/devel/libgii/pkg-plist b/devel/libgii/pkg-plist index 6579f580145..376708ea899 100644 --- a/devel/libgii/pkg-plist +++ b/devel/libgii/pkg-plist @@ -1,8 +1,14 @@ bin/mhub bin/xsendbut -etc/ggi/filter/keytrans -etc/ggi/filter/mouse -etc/ggi/libgii.conf +@unexec if cmp -s %D/etc/ggi/filter/keytrans %D/etc/ggi/filter/keytrans.dist; then rm -f %D/etc/ggi/filter/keytrans; fi +etc/ggi/filter/keytrans.dist +@exec [ -f %B/keytrans ] || cp %B/%f %B/keytrans +@unexec if cmp -s %D/etc/ggi/filter/mouse %D/etc/ggi/filter/mouse.dist; then rm -f %D/etc/ggi/filter/mouse; fi +etc/ggi/filter/mouse.dist +@exec [ -f %B/mouse ] || cp %B/%f %B/mouse +@unexec if cmp -s %D/etc/ggi/libgii.conf %D/etc/ggi/libgii.conf.dist; then rm -f %D/etc/ggi/libgii.conf; fi +etc/ggi/libgii.conf.dist +@exec [ -f %B/libgii.conf ] || cp %B/%f %B/libgii.conf include/ggi/errors.h include/ggi/events.h include/ggi/gg.h @@ -58,13 +64,13 @@ share/examples/libgii/demo.c share/examples/libgii/filter.c share/examples/libgii/mhub.c share/examples/libgii/xsendbut.c -@dirrm etc/ggi/filter -@dirrm etc/ggi -@dirrm include/ggi/input -@dirrm include/ggi/internal -@dirrm include/ggi -@dirrm lib/ggi/filter +@dirrm share/examples/libgii +@dirrm share/doc/libgii @dirrm lib/ggi/input +@dirrm lib/ggi/filter @dirrm lib/ggi -@dirrm share/doc/libgii -@dirrm share/examples/libgii +@dirrm include/ggi/internal +@dirrm include/ggi/input +@dirrm include/ggi +@unexec rmdir %D/etc/ggi/filter 2>/dev/null || true +@unexec rmdir %D/etc/ggi 2>/dev/null || true |