DEBIAN: Build one package for SDL, and one package for GTK+. Thanks to fernandotcl for the patch.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@985 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
bgk 2011-02-20 13:44:09 +00:00
parent c4307833f9
commit 727c7d66d4
11 changed files with 58 additions and 42 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
vbam (1.8.0.914-1) unstable; urgency=low
* Cleanup, packages split into SDL and GTK+ versions
-- Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com> Sun, 04 Oct 2009 19:58:09 -0300
vbam (1.8.0.913-1) unstable; urgency=low
* Using assembly optmizations for i386 and amd64 platforms

28
debian/control vendored
View File

@ -1,16 +1,30 @@
Source: vbam
Section: otherosfs
Priority: optional
Maintainer: Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Build-Depends: debhelper (>= 7), cmake, nasm [i386 amd64], libsdl1.2-dev, libgl-dev, libgtkmm-2.4-dev, libgtkglextmm-x11-1.2-dev, libsfml-dev
Maintainer: Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Build-Depends: debhelper (>= 7), cmake, nasm [i386 amd64], libsdl1.2-dev, libgl-dev, libgtkmm-2.4-dev, libgtkglextmm-x11-1.2-dev
Standards-Version: 3.8.1
Homepage: http://www.vbam.com
Package: vbam
Package: vbam-sdl
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Nintendo Game Boy Advance emulator
VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high compatibility
with commercial games. It emulates the Nintendo Game Boy Advance handheld
console, in addition to the original Game Boy handhelds and its Super and
Color variants.
VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high
compatibility with commercial games. It emulates the Nintendo Game
Boy Advance handheld console, in addition to the original Game Boy
handhelds and its Super and Color variants.
.
This package does not provide a GUI version of VisualBoyAdvance-M.
See the vbam-gtk package for the GTK+ version of this program.
Package: vbam-gtk
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Nintendo Game Boy Advance emulator (GTK+ frontend)
VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high
compatibility with commercial games. It emulates the Nintendo Game
Boy Advance handheld console, in addition to the original Game Boy
handhelds and its Super and Color variants.
.
This package provides the GUI version of VisualBoyAdvance-M.

1
debian/docs vendored
View File

@ -1 +0,0 @@
doc/*

2
debian/menu vendored
View File

@ -1,2 +0,0 @@
?package(vbam):needs="X11" section="Applications/Emulators"\
title="VisualBoyAdvance-M" command="/usr/bin/gvbam"

50
debian/rules vendored
View File

@ -6,7 +6,7 @@
# Based on an autogenerated debhelper sample
#
# Uncomment this to turn on verbose mode.
# Uncomment this to turn on verbose mode
#export DH_VERBOSE=1
DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
@ -17,63 +17,49 @@ ifeq ($(DH_VERBOSE),1)
EXTRA_CMAKE_FLAGS += -DCMAKE_VERBOSE_MAKEFILE=ON
endif
# ASM support in currently unmaintained on Linux
#ifneq (,$(filter $(DEB_BUILD_ARCH_CPU),i386 amd64))
# EXTRA_CMAKE_FLAGS += -DUSE_ASM_SCALERS=ON -DUSE_ASM_CORE=ON
#endif
ifneq (,$(filter $(DEB_BUILD_ARCH_CPU),i386 amd64))
EXTRA_CMAKE_FLAGS += -DUSE_ASM_SCALERS=ON -DUSE_ASM_CORE=ON
endif
builddir/Makefile:
dh_testdir
# Add here commands to configure the package.
mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" -DCMAKE_SKIP_RPATH=ON $(EXTRA_CMAKE_FLAGS)
cd builddir && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="$(CFLAGS)" \
-DCMAKE_LD_FLAGS="-Wl,-z,defs" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
-DCMAKE_SKIP_RPATH=ON $(EXTRA_CMAKE_FLAGS)
build: build-stamp
build-stamp: builddir/Makefile
build-stamp: builddir/Makefile
dh_testdir
# Add here commands to compile the package.
$(MAKE) -C builddir
#docbook-to-man debian/vbam.sgml > vbam.1
touch $@
clean:
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -f build-stamp
rm -rf builddir
dh_clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_prep
dh_installdirs
$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
# Add here commands to install the package into debian/vbam.
$(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/vbam install
# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installchangelogs
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
dh_install
dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
@ -97,4 +83,4 @@ binary-arch: install
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
.PHONY: build clean binary-indep binary-arch binary install

2
debian/vbam-gtk.docs vendored Normal file
View File

@ -0,0 +1,2 @@
doc/DevInfo.txt
doc/ips.htm

4
debian/vbam-gtk.install vendored Normal file
View File

@ -0,0 +1,4 @@
usr/bin/gvbam
usr/share/icons
usr/share/vbam
usr/share/applications

2
debian/vbam-gtk.menu vendored Normal file
View File

@ -0,0 +1,2 @@
?package(gvbam):needs="X11" section="Applications/Emulators"\
title="VisualBoyAdvance-M" command="/usr/bin/gvbam"

3
debian/vbam-sdl.docs vendored Normal file
View File

@ -0,0 +1,3 @@
doc/DevInfo.txt
doc/ips.htm
doc/ReadMe.SDL.txt

2
debian/vbam-sdl.install vendored Normal file
View File

@ -0,0 +1,2 @@
etc
usr/bin/vbam