40 lines
1.1 KiB
Makefile
Executable file
40 lines
1.1 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
CC = gcc
|
|
export DEB_BUILD_MAINT_OPTIONS=hardening=-format
|
|
CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall
|
|
ifeq ($(DEB_HOST_ARCH),armhf)
|
|
CFLAGS := `DEB_CFLAGS_STRIP=-O2 dpkg-buildflags --get CFLAGS` -Wall
|
|
endif
|
|
LDFLAGS := `dpkg-buildflags --get LDFLAGS`
|
|
CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`
|
|
DEFINES = -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
|
|
-DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
|
|
-DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DIZ_HAVE_UXUIDGID -DNOMEMCPY \
|
|
-DNO_WORKING_ISPRINT
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_clean:
|
|
$(MAKE) -f unix/Makefile clean
|
|
rm -f debian/copyright
|
|
|
|
override_dh_auto_build:
|
|
$(MAKE) -f unix/Makefile D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
|
|
CC="$(CC)" LF2="$(LDFLAGS)" \
|
|
CF="$(CFLAGS) $(CPPFLAGS) -I. $(DEFINES)" unzips
|
|
|
|
override_dh_auto_install:
|
|
$(MAKE) -f unix/Makefile install prefix=`pwd`/debian/tmp/usr
|
|
|
|
override_dh_installdocs:
|
|
cat debian/copyright.in LICENSE > debian/copyright
|
|
dh_installdocs
|
|
|
|
override_dh_strip:
|
|
dh_strip
|
|
cd debian/unzip/usr/bin && rm -f zipinfo && ln unzip zipinfo
|
|
|
|
override_dh_compress:
|
|
dh_compress -XBUGS -XToDo
|