| 9 |
|
|
| 10 |
build: |
build: |
| 11 |
dh_testdir |
dh_testdir |
| 12 |
./configure --prefix=/usr |
./configure --without-cint --prefix=/usr |
| 13 |
|
$(MAKE) CXXFLAGS="-O2" |
|
-mkdir shared static |
|
|
# |
|
|
# First build the shared library |
|
|
# |
|
|
cd shared ; \ |
|
|
$(MAKE) -f ../Makefile VPATH=".." srcdir=".." \ |
|
|
CFLAGS="-O2 -fPIC -pipe" ; \ |
|
|
gcc -shared -Wl,-soname,$(package).so.$(version_major) -o $(package).so.$(version) `ls *.o` |
|
|
# |
|
|
# Build the static library (it does not need Position Independent Code, |
|
|
# which reserves one register; thus, without -fPIC we get more efficient |
|
|
# code). |
|
|
# |
|
|
cd static ; \ |
|
|
$(MAKE) -f ../Makefile VPATH=".." srcdir=".." \ |
|
|
CFLAGS="-O2 -pipe" LDFLAGS="-s" progs |
|
| 14 |
touch build |
touch build |
| 15 |
|
|
| 16 |
clean: |
clean: |
| 24 |
|
|
| 25 |
binary-indep: build |
binary-indep: build |
| 26 |
dh_testdir |
dh_testdir |
| 27 |
# There are no architecture-independent files to be uploaded |
dh_testroot |
|
# generated by this package. If there were any they would be |
|
|
# made here. |
|
| 28 |
|
|
| 29 |
binary-arch: build |
binary-arch: build |
| 30 |
dh_testdir |
dh_testdir |
| 31 |
-rm -rf debian/tmp `find debian/* -type d` |
dh_testroot |
| 32 |
install -d debian/tmp |
dh_installdirs |
| 33 |
cd debian/tmp && install -d `cat ../dirs` |
# When will Automake honor FHS? |
| 34 |
install -m644 static/$(package).a debian/tmp/usr/lib/ |
$(MAKE) install prefix=`pwd`/debian/tmp/usr infodir=`pwd`/debian/tmp/usr/share/info mandir=`pwd`/debian/tmp/usr/share/man |
| 35 |
install -m644 static/gdbm.h dbm.h ndbm.h debian/tmp/usr/include/ |
dh_installdocs ChangeLog NEWS README |
| 36 |
install -m644 gdbm.3 debian/tmp/usr/share/man/man3/gdbm.3gdbm |
dh_installchangelogs |
| 37 |
|
dh_installmenu |
| 38 |
install -m644 shared/$(package).so.$(version) debian/tmp/usr/lib |
dh_movefiles -pginac-dev -pginac-doc |
| 39 |
|
if test -f cint/ginaccint.bin; then dh_movefiles -pginaccint; fi |
| 40 |
$(MAKE) install prefix=`pwd`/debian/tmp/usr |
dh_strip |
| 41 |
debstd -m ChangeLog NEWS README |
dh_compress |
| 42 |
dpkg-gencontrol -pginac1-dev |
dh_fixperms |
| 43 |
chown -R root.root debian/tmp |
dh_shlibdeps |
| 44 |
chmod -R go=rX debian/tmp |
dh_gencontrol |
| 45 |
dpkg --build debian/tmp .. |
dh_makeshlibs |
| 46 |
|
dh_installdeb |
| 47 |
|
dh_md5sums |
| 48 |
|
dh_builddeb -pginac -pginac-dev -pginac-doc |
| 49 |
|
if test -f cint/ginaccint.bin; then dh_builddeb -pginaccint; fi |
| 50 |
|
|
| 51 |
binary: binary-indep binary-arch |
binary: binary-indep binary-arch |
| 52 |
|
|