summaryrefslogtreecommitdiffstats
path: root/src/libieee1284.mk
blob: 0dbf388eecd3e5b2379b98fae91a7a0d8e63d5af (plain)
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
26
# This file is part of MXE.
# See index.html for further information.

PKG             := libieee1284
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.2.11
$(PKG)_CHECKSUM := 7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a
$(PKG)_SUBDIR   := libieee1284-$($(PKG)_VERSION)
$(PKG)_FILE     := libieee1284-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    $(WGET) -q -O - http://sourceforge.net/projects/libieee1284/files/ | \
    tr '\n' ' ' | \
    $(SED) 's/.*Looking for the latest version//;s/\(libieee1284-[0-9.]\+\)\.[^0-9].*/\1/;s/.*-//'
endef

define $(PKG)_BUILD
    cd '$(1)' && autoreconf -fi
    cd '$(1)' && ./configure \
        $(MXE_CONFIGURE_OPTS) \
        --without-python
    $(MAKE) -C '$(1)' -j '$(JOBS)'
    $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_DOCS)
endef