Skip to content

Commit

Permalink
adjust makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Apr 9, 2021
1 parent aea77f2 commit 29c4c99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 3 additions & 1 deletion cross/ejabberd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
BUILD_DEPENDS = native/erlang
DEPENDS = cross/ncurses cross/erlang cross/expat cross/zlib cross/openssl cross/libyaml

# PPC archs except qoriq have too old compiler
# PPC archs except qoriq have compiler errors with 64 bit values
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS)

HOMEPAGE = https://www.ejabberd.im
Expand All @@ -25,6 +25,8 @@ CONFIGURE_ARGS += --enable-mysql
# for 'rebar configure-deps' + 'rebar compile' to find cross compiled libei.a and liberl_interface.a
# remarks: arguments for rebar are collected in 'vars.config'
ADDITIONAL_LDFLAGS = -L$(STAGING_INSTALL_PREFIX)/lib/erlang/usr/lib
ADDITIONAL_CFLAGS = -I$(STAGING_INSTALL_PREFIX)/lib/erlang/usr/include
ADDITIONAL_CPPFLAGS = $(ADDITIONAL_CFLAGS)

PRE_CONFIGURE_TARGET = ejabberd_pre_configure
POST_INSTALL_TARGET = ejabberd_post_install
Expand Down
4 changes: 2 additions & 2 deletions cross/erlang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ PKG_NAME = erlang
PKG_VERS = 23.2.5
PKG_EXT = tar.gz
PKG_DIST_NAME = OTP-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://www.erlang.org/download/
PKG_DIST_SITE = https://github.com/erlang/otp/archive
PKG_DIST_FILE = $(PKG_NAME)-OTP-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = otp-OTP-$(PKG_VERS)

DEPENDS = native/$(PKG_NAME) cross/ncurses cross/openssl

HOMEPAGE = https://www.erlang.org
COMMENT = Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability.
LICENSE = Erlang Public License
LICENSE = Apache 2.0

NATIVE_ERLANG_BIN_DIR = $(realpath $(WORK_DIR)/../../../native/erlang/work-native/install/usr/local/bin)
ENV = PATH=$$PATH:$(NATIVE_ERLANG_BIN_DIR)
Expand Down
6 changes: 1 addition & 5 deletions native/erlang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ DEPENDS =

HOMEPAGE = https://erlang.org
COMMENT = Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability.
LICENSE = Erlang Public License
LICENSE = Apache 2.0

PRE_CONFIGURE_TARGET = erlang_pre_configure
CONFIGURE_TARGET = erlang_configure
COMPILE_TARGET = erlang_compile
INSTALL_TARGET = erlang_install

CONFIGURE_ARGS = --without-javac
Expand All @@ -34,9 +33,6 @@ erlang_pre_configure:
erlang_configure:
$(RUN) ./otp_build configure $(CONFIGURE_ARGS)

.PHONY: erlang_compile
erlang_compile:
$(RUN) make

.PHONY: erlang_install
erlang_install:
Expand Down

0 comments on commit 29c4c99

Please sign in to comment.