forked from ports/contrib
amsn: Updated 0.96 -> 0.97. Fixed missing deps, removed unnecessary patches and cleaned up.
This commit is contained in:
parent
1e434b8e47
commit
6eadd5a5e6
1295
amsn/.footprint
1295
amsn/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,2 +1 @@
|
||||
ee68601d8b7687b2b6fc8e9a4eb67c2f amsn-0.96.diff
|
||||
3df6b0d34ef1997a47c0b8af29b2547a amsn-0.96.tar.bz2
|
||||
493627afc2dc38d94500499e9ec34404 amsn-0.97.tar.bz2
|
||||
|
22
amsn/Pkgfile
22
amsn/Pkgfile
@ -2,27 +2,21 @@
|
||||
# URL: http://amsn.sourceforge.net
|
||||
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
|
||||
# Packager: James Mills, prologic at shortcircuit dot net dot au
|
||||
# Depends on: tk
|
||||
# Depends on: tk libjpeg libpng
|
||||
|
||||
name=amsn
|
||||
version=0.96
|
||||
release=4
|
||||
source=(http://dl.sourceforge.net/$name/$name-$version.tar.bz2
|
||||
$name-$version.diff)
|
||||
version=0.97
|
||||
release=1
|
||||
source=(http://dl.sourceforge.net/$name/$name-$version.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -p1 -i $SRC/$name-$version.diff
|
||||
./configure --prefix=/usr \
|
||||
--disable-nls \
|
||||
--with-tls
|
||||
--with-x
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
rm -rf \
|
||||
$PKG/usr/share/icons \
|
||||
$PKG/usr/share/$name/{icons,docs,lang} \
|
||||
$PKG/usr/share/$name/{AGREEMENT,CREDITS,FAQ,GNUGPL} \
|
||||
$PKG/usr/share/$name/{HELP,INSTALL,README,TODO} \
|
||||
$PKG/usr/share/$name/utils/BWidget-1.7.0/{ChangeLog,LICENSE.txt,Makefile.in} \
|
||||
$PKG/usr/share/$name/utils/BWidget-1.7.0/{aclocal.m4,CHANGES.txt,README.txt}
|
||||
rm -rf $PKG/usr/share/amsn/{AGREEMENT,CREDITS,FAQ,GNUGPL,HELP,INSTALL} \
|
||||
$PKG/usr/share/amsn/{TODO,docs,README,plugins/*/README} \
|
||||
$PKG/usr/share/amsn/utils/*/{LICENSE.txt,license.terms}
|
||||
}
|
||||
|
@ -1,101 +0,0 @@
|
||||
--- Makefile.orig 2006-08-16 00:23:23.000000000 +0000
|
||||
+++ Makefile 2006-08-16 00:24:44.000000000 +0000
|
||||
@@ -8,7 +8,6 @@
|
||||
doc_files := docs INSTALL CREDITS FAQ GNUGPL HELP README TODO AGREEMENT remote.help
|
||||
|
||||
FILES_TO_INSTALL := *.tcl hotmlog.htm sndplay amsn amsn-remote amsn-remote-CLI amsn.desktop langlist
|
||||
-FILES_TO_INSTALL += $(doc_files)
|
||||
FILES_TO_INSTALL += icons lang skins utils/base64 utils/drawboard utils/framec utils/http2.4
|
||||
FILES_TO_INSTALL += utils/pixmapscroll
|
||||
FILES_TO_INSTALL += utils/scalable-bg utils/sha1 utils/snit0.97 utils/BWidget-1.7.0
|
||||
@@ -137,76 +136,28 @@
|
||||
|
||||
|
||||
install:: $(FILES_TO_INSTALL)
|
||||
- rm -Rf $(dstdir)/$(PACKAGE)
|
||||
- mkdir --parents $(dstdir)/$(PACKAGE)
|
||||
- mkdir -p $(slnkdir)
|
||||
+ rm -Rf $(DESTDIR)/$(dstdir)/$(PACKAGE)
|
||||
+ mkdir --parents $(DESTDIR)/$(dstdir)/$(PACKAGE)
|
||||
+ mkdir -p $(DESTDIR)/$(slnkdir)
|
||||
@for p in $?; do \
|
||||
- cp -Rf --parents $(srcdir)/$$p $(dstdir)/$(PACKAGE); \
|
||||
+ cp -Rf --parents $(srcdir)/$$p $(DESTDIR)/$(dstdir)/$(PACKAGE); \
|
||||
done
|
||||
- find $(dstdir)/$(PACKAGE) -name CVS -print | xargs rm -Rf
|
||||
+ find $(DESTDIR)/$(dstdir)/$(PACKAGE) -name CVS -print | xargs rm -Rf
|
||||
@for p in $(FILES_TO_EXCLUDE); do \
|
||||
- rm -Rf $(dstdir)/$(PACKAGE)/$$p; \
|
||||
+ rm -Rf $(DESTDIR)/$(dstdir)/$(PACKAGE)/$$p; \
|
||||
done
|
||||
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn $(slnkdir)/amsn
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn-remote $(slnkdir)/amsn-remote
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn-remote-CLI $(slnkdir)/amsn-remote-CLI
|
||||
+ ln -sf $(dstdir)/$(PACKAGE)/amsn $(DESTDIR)/$(slnkdir)/amsn
|
||||
+ ln -sf $(dstdir)/$(PACKAGE)/amsn-remote $(DESTDIR)/$(slnkdir)/amsn-remote
|
||||
+ ln -sf $(dstdir)/$(PACKAGE)/amsn-remote-CLI $(DESTDIR)/$(slnkdir)/amsn-remote-CLI
|
||||
|
||||
- chmod -R +rx $(dstdir)/$(PACKAGE)
|
||||
+ chmod +rx $(DESTDIR)/$(dstdir)/$(PACKAGE)/{amsn,amsn-remote,amsn-remote-CLI}
|
||||
|
||||
- mkdir -p $(dstdir)/icons/hicolor
|
||||
- cp -R $(srcdir)/icons/* $(dstdir)/icons/hicolor
|
||||
+ mkdir -p $(DESTDIR)/$(dstdir)/icons/hicolor
|
||||
+ cp -R $(srcdir)/icons/* $(DESTDIR)/$(dstdir)/icons/hicolor
|
||||
|
||||
- mkdir -p $(dstdir)/applications
|
||||
- cp $(srcdir)/amsn.desktop $(dstdir)/applications
|
||||
-
|
||||
-rpm-install:: $(FILES_TO_INSTALL)
|
||||
- rm -Rf $(INSTALL_PREFIX)/$(dstdir)/$(PACKAGE)
|
||||
- mkdir --parents $(INSTALL_PREFIX)/$(dstdir)/$(PACKAGE)
|
||||
- @for p in $?; do \
|
||||
- cp -Rf --parents $(srcdir)/$$p $(INSTALL_PREFIX)/$(dstdir)/$(PACKAGE); \
|
||||
- done
|
||||
- find $(INSTALL_PREFIX)/$(dstdir)/$(PACKAGE) -name CVS -print | xargs rm -Rf
|
||||
- @for p in $(FILES_TO_EXCLUDE); do \
|
||||
- rm -Rf $(INSTALL_PREFIX)/$(dstdir)/$(PACKAGE)/$$p; \
|
||||
- done
|
||||
- mkdir --parents $(INSTALL_PREFIX)/$(slnkdir)
|
||||
-
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn $(INSTALL_PREFIX)/$(slnkdir)/amsn
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn-remote $(INSTALL_PREFIX)/$(slnkdir)/amsn-remote
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn-remote-CLI $(INSTALL_PREFIX)/$(slnkdir)/amsn-remote-CLI
|
||||
-
|
||||
-rpm: all
|
||||
- mkdir -p ./distrib
|
||||
-
|
||||
- rm -f THIS.TK.SPEC
|
||||
- echo "%define _builddir `pwd`" > THIS.AMSN.SPEC
|
||||
- echo "%define _rpmdir /tmp/RPMS" >> THIS.AMSN.SPEC
|
||||
- echo "%define _prefix $(prefix)" >> THIS.AMSN.SPEC
|
||||
- echo "%define _tmppath /tmp" >> THIS.AMSN.SPEC
|
||||
- echo "%define _datadir $(dstdir)/$(PACKAGE)" >> THIS.AMSN.SPEC
|
||||
- echo "%define _bindir $(slnkdir)" >> THIS.AMSN.SPEC
|
||||
- echo "%define _doc_files $(doc_files)" >> THIS.AMSN.SPEC
|
||||
- echo "%define _platform `uname -m`" >> THIS.AMSN.SPEC
|
||||
- echo "%define _version $(BASEVERSION)" >> THIS.AMSN.SPEC
|
||||
- echo "%define __release $(RELEASEVERSION)" >> THIS.AMSN.SPEC
|
||||
-
|
||||
- cat amsn.spec >> THIS.AMSN.SPEC
|
||||
- mkdir -p /tmp/RPMS
|
||||
- rpmbuild -bb THIS.AMSN.SPEC
|
||||
- rm -rf ./distrib/RPMS
|
||||
- mv /tmp/RPMS ./distrib
|
||||
- rm -rf /tmp/RPMS THIS.AMSN.SPEC
|
||||
-
|
||||
-deb: all
|
||||
- mkdir -p ./distrib/DEB
|
||||
-
|
||||
- sed "1s/#VERSION#/${VERSION}/" debian/changelog.in > debian/changelog
|
||||
- fakeroot debian/rules clean
|
||||
- fakeroot debian/rules binary VERSION=${VERSION}
|
||||
-
|
||||
- rm -f debian/changelog
|
||||
- rm -rf debian/amsn
|
||||
+ mkdir -p $(DESTDIR)/$(dstdir)/applications
|
||||
+ cp $(srcdir)/amsn.desktop $(DESTDIR)/$(dstdir)/applications
|
||||
|
||||
#########################################################
|
||||
# include stuff
|
@ -1,47 +0,0 @@
|
||||
diff -Nru amsn-0.96.orig/Makefile.in amsn-0.96/Makefile.in
|
||||
--- amsn-0.96.orig/Makefile.in 2007-02-27 19:06:37.000000000 +1000
|
||||
+++ amsn-0.96/Makefile.in 2007-02-27 19:35:56.000000000 +1000
|
||||
@@ -142,27 +142,27 @@
|
||||
|
||||
|
||||
install:: $(FILES_TO_INSTALL)
|
||||
- rm -Rf $(dstdir)/$(PACKAGE)
|
||||
- mkdir --parents $(dstdir)/$(PACKAGE)
|
||||
- mkdir -p $(slnkdir)
|
||||
+ rm -Rf $(DESTDIR)/$(dstdir)/$(PACKAGE)
|
||||
+ mkdir --parents $(DESTDIR)/$(dstdir)/$(PACKAGE)
|
||||
+ mkdir -p $(DESTDIR)/$(slnkdir)
|
||||
@for p in $?; do \
|
||||
- cp -Rf --parents $(srcdir)/$$p $(dstdir)/$(PACKAGE); \
|
||||
+ cp -Rf --parents $(srcdir)/$$p $(DESTDIR)/$(dstdir)/$(PACKAGE); \
|
||||
done
|
||||
- find $(dstdir)/$(PACKAGE) -name CVS -print | xargs rm -Rf
|
||||
- @for p in $(FILES_TO_EXCLUDE); do \
|
||||
- rm -Rf $(dstdir)/$(PACKAGE)/$$p; \
|
||||
+ find $(DESTDIR)/$(dstdir)/$(PACKAGE) -name CVS -print | xargs rm -Rf
|
||||
+ @for p in $(DESTDIR)/$(FILES_TO_EXCLUDE); do \
|
||||
+ rm -Rf $(DESTDIR)/$(dstdir)/$(PACKAGE)/$$p; \
|
||||
done
|
||||
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn $(slnkdir)/amsn
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn-remote $(slnkdir)/amsn-remote
|
||||
- ln -sf $(dstdir)/$(PACKAGE)/amsn-remote-CLI $(slnkdir)/amsn-remote-CLI
|
||||
-
|
||||
- chmod -R +rx $(dstdir)/$(PACKAGE)
|
||||
- mkdir -p $(dstdir)/icons/hicolor
|
||||
- cp -R $(srcdir)/icons/* $(dstdir)/icons/hicolor
|
||||
+ ln -sf $(dstdir)/$(PACKAGE)/amsn $(DESTDIR)/$(slnkdir)/amsn
|
||||
+ ln -sf $(dstdir)/$(PACKAGE)/amsn-remote $(DESTDIR)/$(slnkdir)/amsn-remote
|
||||
+ ln -sf $(dstdir)/$(PACKAGE)/amsn-remote-CLI $(DESTDIR)/$(slnkdir)/amsn-remote-CLI
|
||||
+
|
||||
+ chmod -R +rx $(DESTDIR)/$(dstdir)/$(PACKAGE)
|
||||
+ mkdir -p $(DESTDIR)/$(dstdir)/icons/hicolor
|
||||
+ cp -R $(srcdir)/icons/* $(DESTDIR)/$(dstdir)/icons/hicolor
|
||||
|
||||
- mkdir -p $(dstdir)/applications
|
||||
- cp $(srcdir)/amsn.desktop $(dstdir)/applications
|
||||
+ mkdir -p $(DESTDIR)/$(dstdir)/applications
|
||||
+ cp $(srcdir)/amsn.desktop $(DESTDIR)/$(dstdir)/applications
|
||||
|
||||
rpm-install:: $(FILES_TO_INSTALL)
|
||||
rm -Rf $(INSTALL_PREFIX)/$(dstdir)/$(PACKAGE)
|
Loading…
x
Reference in New Issue
Block a user