forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popt.mk
25 lines (22 loc) · 939 Bytes
/
popt.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := popt
$(PKG)_WEBSITE := https://web.archive.org/web/20190425081726/rpm5.org/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.16
$(PKG)_CHECKSUM := e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://deb.debian.org/debian/pool/main/p/$(PKG)/$(PKG)_$($(PKG)_VERSION).orig.tar.gz
$(PKG)_DEPS := cc gettext libiconv
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://web.archive.org/web/20170922140539/rpm5.org/files/popt/' | \
grep 'popt-' | \
$(SED) -n 's,.*popt-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-nls
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef