Priority: optional
Maintainer: Fredrik Roubert <roubert@google.com>
Build-Depends: ant,
+ ant-optional,
cmake,
- debhelper (>= 7.0.50~),
+ debhelper (>= 9),
default-jdk | java-sdk,
javahelper (>= 0.34),
+ junit,
libboost-dev (>= 1.40),
libboost-system-dev (>= 1.40),
libboost-thread-dev (>= 1.40),
libprotobuf-dev (>= 2.4),
libre2-dev,
protobuf-compiler
-Standards-Version: 3.9.1
+Standards-Version: 3.9.5
Section: libs
Homepage: http://code.google.com/p/libphonenumber/
Vcs-Browser: http://code.google.com/p/libphonenumber/source/browse/
Section: libdevel
Architecture: any
Depends: libphonenumber6 (=${binary:Version}), ${misc:Depends}
-Description: parsing/formatting/validating phone numbers - development
+Description: parsing/formatting/validating phone numbers - development files
Google's common C++ and Java library for parsing, formatting, storing and
validating international phone numbers.
.
This package contains the static libraries and include files.
Package: libphonenumber6
-Section: libs
Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: parsing/formatting/validating phone numbers - runtime
+Description: parsing/formatting/validating phone numbers
Google's common C++ and Java library for parsing, formatting, storing and
validating international phone numbers.
.
- This package contains the runtime libraries.
+ This package contains the runtime libraries for C++ users.
Package: libphonenumber-java
Section: java
Google's common C++ and Java library for parsing, formatting, storing and
validating international phone numbers.
.
- This package contains the JAR files.
+ This package contains the runtime library JARs for Java users.
CPP_BUILD := cpp/build
JAVA_BUILD := java/build
+# CMake doesn't read CPPFLAGS and dh_auto commands are not used in this rules
+# file so we have to manually set the flags here to ensure that hardening flags
+# are used:
+CFLAGS += $(CPPFLAGS)
+CXXFLAGS += $(CPPFLAGS)
+
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
$(ANT) -f $(JAVA_BUILD).xml junit
endif
+# Hack for multiarch: CMake doesn't really support libdir so we just manually
+# move /usr/lib/* to a proper multiarch location.
override_dh_auto_install:
dh_auto_install --builddirectory=$(CPP_BUILD)
+ mkdir -p debian/tmp/usr/lib-$(DEB_HOST_MULTIARCH)
+ mv debian/tmp/usr/lib/* debian/tmp/usr/lib-$(DEB_HOST_MULTIARCH)
+ mv debian/tmp/usr/lib-$(DEB_HOST_MULTIARCH) \
+ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
override_dh_auto_clean:
-test -d $(CPP_BUILD) && $(MAKE) -C $(CPP_BUILD) clean